Which is not valid in C?
1) class aClass{public:int x;}
2) /* A comment */
3) char x=12;
Answers were Sorted based on User's Feedback
Answer / sridhar
1)is valid in case of objective C
2)thts a valid comment
3)its invalid
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sriharsha
I think char x=12 is also not valid
Because 1.maximum length of the character can be 1 character
2.It should enclosed within single inverted commas, like
'1',or 'a'.
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / sourisengupta
1) class aClass{public:int x;}
3) char x=12;
these twoo are not valid in c.
| Is This Answer Correct ? | 1 Yes | 1 No |
what is the difference between NULL & NUL keywords in C?
Why is c so powerful?
main() { int x=5,y=10,z=0; x=x++ + y++; y=y++ + ++x; z=x++ + ++y; printf("%d%d%d\n",x,y,z); }
What are static variables in c?
Find the output? void main() {float a=2.0; printf("\nSize of a ::%d",sizeof(a)); printf("\nSize of 2.0 ::%d",sizeof(2.0));}
11 Answers IBM, TCS,
Why is c still so popular?
Explain about C function prototype?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
How would you find a cycle in a linked list?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Tell us the use of fflush() function in c language?
What is variable in c with example?