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 |
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
how to display 2-D array elements in spiral
Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is the code for 3 questions and answer check in VisualBasic.Net?
Why doesnt the call scanf work?
What are the loops in c?
How can I return multiple values from a function?
how to swap 4 number without using temporary number?
Explain can static variables be declared in a header file?
What is the difference between int and float?
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?