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 types of variables in c?
How can I pad a string to a known length?
What is the difference between malloc() and calloc() function in c language?
Write a code on reverse string and its complexity.
Explain how can you tell whether two strings are the same?
What’s a signal? Explain what do I use signals for?
Are c and c++ the same?
Write a Program to accept different goods with the number, price and date of purchase and display them
What are the Advantages of using macro
What are the storage classes in C?
Is c dynamically typed?
What are the different data types in C?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What standard functions are available to manipulate strings?
Find MAXIMUM of three distinct integers using a single C statement