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
Is a house a mass structure?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
How will you write a code for accessing the length of an array without assigning it to another variable?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Why we use int main and void main?
What is difference between function overloading and operator overloading?
What is the advantage of c?
Write a program to identify if a given binary tree is balanced or not.
What is the advantage of an array over individual variables?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Explain the array representation of a binary tree in C.
How to throw some light on the b tree?
Explain the difference between strcpy() and memcpy() function?
Why is c not oop?
Explain what are the advantages and disadvantages of a heap?