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 |
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
what is diff between localstatic and globalstatis variable possible 2 use in another file...?
Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.
How do you do dynamic memory allocation in C applications?
What is %d used for?
Give a method to count the number of ones in a 32 bit number?
main() { int i; printf("%d",i^i); }
how to print value of e(exp1)up to required no of digits after decimal?
Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?
What is the difference between text files and binary files?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Tell me what is the purpose of 'register' keyword in c language?