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


Please Help Members By Posting Answers For Below Questions

What are dangling pointers? How are dangling pointers different from memory leaks?

619


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1813


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

700


What is the difference between a free-standing and a hosted environment?

640


What is the difference between a string and an array?

703






Subtract Two Number Without Using Subtraction Operator

352


provide an example of the Group by clause, when would you use this clause

1705


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.

1778


Write a program to print ASCII code for a given digit.

681


#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??

1539


Is there any possibility to create customized header file with c programming language?

619


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

2528


Is c dynamically typed?

666


Write a program on swapping (100, 50)

634


When do we get logical errors?

635