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



which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / saudip sen

choice d.

Reason:
The macro sign # is not applicable here.
Syntactical error!

Is This Answer Correct ?    11 Yes 0 No

which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / phanitha

d is the right answer
# should not be present at starting.

Is This Answer Correct ?    10 Yes 1 No

which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / mannucse

d

Is This Answer Correct ?    10 Yes 2 No

which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / sanath

Bot a and d are wrong.

Is This Answer Correct ?    5 Yes 5 No

which of the following statements is incorrect a.typedef struct new{ int n1; char n2; ..

Answer / shruti

b and d are wrong..

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More C Interview Questions

which header file contains main() function in c?

17 Answers   Google, HCL, TCS,


What are c preprocessors?

0 Answers  


How do you initialize function pointers? Give an example?

3 Answers  


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

5 Answers   Vector, Vector Solutions,


What is that continue statement??

4 Answers  






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

1 Answers  


Explain what is operator promotion?

0 Answers  


What is the -> in c?

0 Answers  


Write a program to generate random numbers in c?

0 Answers  


How can I determine whether a machines byte order is big-endian or little-endian?

0 Answers  


can u write a program in C, which does not use = (eqaul)or any arithmatic assignment(like -=,+=,*= etc) operator to swap to number?

2 Answers  


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

0 Answers  


Categories