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
write a c program for swapping two strings using pointer
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
How would you obtain the current time and difference between two times?
What is the difference between the = symbol and == symbol?
What was noalias and what ever happened to it?
Can you please explain the difference between strcpy() and memcpy() function?
Explain the difference between #include "..." And #include <...> In c?
Is c# a good language?
What is 1f in c?
What is the best way to store flag values in a program?
What is variables in c?
What is wild pointer in c with example?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
Tell me the use of bit field in c language?
Where are some collections of useful code fragments and examples?