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
write a c program to find the sum of five entered numbers using an array named number
What is a #include preprocessor?
How does struct work in c?
What is storage class?
Why functions are used in c?
What is the right type to use for boolean values in c?
Can a function argument have default value?
If the size of int data type is two bytes, what is the range of signed int data type?
What is the scope of global variable in c?
Where static variables are stored in c?
Tell me what are bitwise shift operators?
using only #include
What is c basic?
What are pointers in C? Give an example where to illustrate their significance.
Explain the use of 'auto' keyword in c programming?