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 |
Write a C program where input is: "My name is xyz". output is: "xyz is name My".
What is volatile in c language?
Write a program to print this triangle: * ** * **** * ****** * ******** * ********** Don't use printf statements;use two nested loops instead. you will have to use braces around the body of the outer loop if it contains multiple statements.
Explain goto?
Why can't I perform arithmetic on a void* pointer?
what is mean by Garbage collection ? Please answer me. Advance thanks.
How to explain the final year project as a fresher please answer with sample project
HOW CAN ADD OUR FUNCTION IN LIBRARY.
Why are all header files not declared in every c program?
What are header files? What are their uses?
array of pointer pointer to array pointer to pointer
difference between memcpy and strcpy