which of the following statements is incorrect
a.typedef struct new{
int n1;
char n2;
} DATA;
b.typedef struct {
int n3;
char *n4;
}ICE;
c.typedef union {
int n5;
float n6;
} UDT;
d.#typedef union {
int n7;
float n8;
} TUDAT;
Answers were Sorted based on User's Feedback
Answer / saudip sen
choice d.
Reason:
The macro sign # is not applicable here.
Syntactical error!
Is This Answer Correct ? | 11 Yes | 0 No |
Answer / phanitha
d is the right answer
# should not be present at starting.
Is This Answer Correct ? | 10 Yes | 1 No |
which header file contains main() function in c?
17 Answers Google, HCL, TCS,
What are c preprocessors?
How do you initialize function pointers? Give an example?
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
5 Answers Vector, Vector Solutions,
What is that continue statement??
suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,------dec) we take integer value as an input .question is that the month which we analyz is from 0 to 11 bt if i enter 12 than how he again starts from begning and print jan
Explain what is operator promotion?
What is the -> in c?
Write a program to generate random numbers in c?
How can I determine whether a machines byte order is big-endian or little-endian?
can u write a program in C, which does not use = (eqaul)or any arithmatic assignment(like -=,+=,*= etc) operator to swap to number?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?