Which is not valid in C?
1) class aClass{public:int x;}
2) /* A comment */
3) char x=12;
Answer Posted / 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 |
Post New Answer View All Answers
What are dangling pointers? How are dangling pointers different from memory leaks?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
What is the difference between a free-standing and a hosted environment?
What is the difference between a string and an array?
Subtract Two Number Without Using Subtraction Operator
provide an example of the Group by clause, when would you use this clause
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
Write a program to print ASCII code for a given digit.
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
Is there any possibility to create customized header file with c programming language?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Is c dynamically typed?
Write a program on swapping (100, 50)
When do we get logical errors?