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 |
Explain the difference between getch() and getche() in c?
How do you write a program which produces its own source code as output?
What is the memory allocated by the following definition ? int (*x)[10];
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
What is main return c?
Is the exit() function same as the return statement? Explain.
0 Answers Agilent, ZS Associates,
Write code for finding depth of tree
How can I insert or delete a line (or record) in the middle of a file?
What is static volatile in c?
Explain 'bit masking'?
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
In which category does main function belong??