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 is the size of structure pointer in c?
What are the complete rules for header file searching?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Which programming language is best for getting job 2020?
Explain what are preprocessor directives?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Explain how can I manipulate strings of multibyte characters?
What is an lvalue in c?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is the scope of global variable in c?
When should a far pointer be used?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What does the characters “r” and “w” mean when writing programs that will make use of files?
What is the difference between void main and main in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result