Which is not valid in C?
1) class aClass{public:int x;}
2) /* A comment */
3) char x=12;
Answers were Sorted based on User's Feedback
Answer / sridhar
1)is valid in case of objective C
2)thts a valid comment
3)its invalid
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Answer / sourisengupta
1) class aClass{public:int x;}
3) char x=12;
these twoo are not valid in c.
| Is This Answer Correct ? | 1 Yes | 1 No |
What is the process to create increment and decrement stamen in c?
write a program to delete an item from a particular location of an linear array?
What is size of union in c?
What is external variable in c?
Can we access array using pointer in c language?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
Can you think of a logic behind the game minesweeper.
Why dont c comments nest?
SRUCTURE PROGRAMMING
How can I run c program?
What is the difference between union and structure in c?
what is the difference between. system call and library function?