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 |
write a program in c to merge two array
main() { printf("%x",-1<<4); }
what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
Write a single line c expression to delete a,b,c from aabbcc
main() { int a[10]; printf("%d",*a+1-*a+3); }
prog. to produce 1 2 3 4 5 6 7 8 9 10
Implement a t9 mobile dictionary. (Give code with explanation )
1 Answers Amazon, Peak6, Yahoo,
Give a one-line C expression to test whether a number is a power of 2.
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }