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 |
how to print 212 as Twohundreds twelve plz provide me ans soon
How can I get back to the interactive keyboard if stdin is redirected?
How can I read data from data files with particular formats?
what is the use of bitfields & where do we use them?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What are control structures? What are the different types?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is the size of empty structure in c?
Explain About fork()?
Explain what is wrong with this statement? Myname = ?robin?;
What are the key features of C?
What is a structure member in c?