Is the following code legal?
typedef struct a
{
int x;
aType *b;
}aType
Answer / susie
Answer :
No
Explanation:
The typename aType is not known at the point of declaring
the structure (forward references are not made for typedefs).
| Is This Answer Correct ? | 0 Yes | 1 No |
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }
main() { int a[10]; printf("%d",*a+1-*a+3); }
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.
21 Answers ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,
#define prod(a,b) a*b main() { int x=3,y=4; printf("%d",prod(x+2,y-1)); }
find A^B using Recursive function
why the range of an unsigned integer is double almost than the signed integer.
main() { char a[4]="HELL"; printf("%s",a); }
What is the hidden bug with the following statement? assert(val++ != 0);
Is the following code legal? struct a { int x; struct a b; }
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }
main() { int (*functable[2])(char *format, ...) ={printf, scanf}; int i = 100; (*functable[0])("%d", i); (*functable[1])("%d", i); (*functable[1])("%d", i); (*functable[0])("%d", &i); } a. 100, Runtime error. b. 100, Random number, Random number, Random number. c. Compile error d. 100, Random number
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h