Which is not valid in C?
1) class aClass{public:int x;}
2) /* A comment */
3) char x=12;
Answer Posted / 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 |
Post New Answer View All Answers
What are the two types of structure?
Explain the difference between call by value and call by reference in c language?
What are predefined functions in c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Why c is called procedure oriented language?
What is a #include preprocessor?
What are header files? What are their uses?
Explain Function Pointer?
How can I write functions that take a variable number of arguments?
What’s a signal? Explain what do I use signals for?
What is string length in c?
Is Exception handling possible in c language?
What are the data types present in c?
What is pivot in c?
How can you read a directory in a C program?