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
Suggesting that there can be 62 seconds in a minute?
How are portions of a program disabled in demo versions?
What is the difference between char array and char pointer?
How is null defined in c?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
What is function in c with example?
Why isnt there a numbered, multi-level break statement to break out
What's the best way of making my program efficient?
Write a program to reverse a linked list in c.
how do you programme Carrier Sense Multiple Access
Explain how does flowchart help in writing a program?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What are enums in c?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Explain the difference between strcpy() and memcpy() function?