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 program that explain #define and # undef directive
can we store values and addresses in the same array? explain
implement OR gate without using any bitwise operator.
WHAT IS RTGS N MINIMUM AMT TO B TRANSFERD N WHAT R THE CHARGES ON MINIMUM AMT N IN WHICH BANK WE CAN DO IT?
printf("%d",(printf("Hello")); What it returns?
find the sum of two matrices and WAP for it.
How can I split up a string into whitespace-separated fields?
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
What are the types of macro formats?
how to print 2-D array using a single for loop?
2 Answers Mind Tree, TCS, Value Labs,
the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0
Hi Every one...........I have been selected for the SBI Clerk. But i m one month Pregnanat. So anyone please suggest me, is they take any objection on my joining .
4 Answers State Bank Of India SBI,