1,254 views
0 votes
0 votes
Choose the statement that are syntactically incorrect in C language?

1.for( ; ; );

2./* this is a /* a valid */ comment*/

3.return 5;

4.return(6+3);

2 Answers

0 votes
0 votes
Only 2 is incorrect. As we know a comment in C starts with /* and ends with */. There is no concept of nested comment in C . Once we put */ , the comment ends there. Rest of the line is considered as redundant and hence is synctactically incorrect in C

Related questions

1 votes
1 votes
1 answer
1
Harikesh Kumar asked Jun 12, 2017
1,118 views
Which of the following is not the member of class ?1.Static function2.Friend dunction 3.const. function 4.Virtual function
0 votes
0 votes
1 answer
2
Harikesh Kumar asked Jun 12, 2017
937 views
Which contains the information about a file that is needed by the system programs that access the file records?1.A file header2.A file descriptor3.Bootstrap4.Both 1 and ...
0 votes
0 votes
1 answer
3
Harikesh Kumar asked Jun 12, 2017
402 views
A logical schema is a database 1. is the entire database 2.is the standard way of organizing information into accessible parts 3.describes how data actually store in disk...
0 votes
0 votes
1 answer
4
Harikesh Kumar asked Jun 12, 2017
791 views
A sorting algorithm is called stable if1.It takes O(n log n) time2.It maintains relative order of occurrence of non-distinct elements3.It uses divide and conquer paradig...