ya in q.19 two option r given n in question no. 20,for loop is ended due to presence of ; so only one time below caculation will take place n value of b will be b=0+5=5, now it sud be printed....no loop again..so there will no error....syntax is useless due to ;

hi for loop also contains semicolon which is treated as infinite loop
for(initialization;condition;increment/decrement); this is correct this is infinite loop. so please make a correction of question no 20.

nice.pls clarify qn 3 c was developed in 1973.in qn 20 ans is 5.it's not error.pls clarify.c is a high level language pls clarify.qn 18 it should be
?: not ::pls correct it.qn 16 highest precedence of operators in c are given to *,/,% its not ^ pls correct.qn 7 both a and c are bitwise operators.pls clarify these.....

I just want correct the 20th answer.. if a semicolon is present at the end of for loop then it is a self loop. so it will execute 5 times in side for and after that it will execute the statements after that. it will not give any error.
so the answer will be 5.
thanks..

its a gud site for knowledge but there is some mistakes in few questons so we could not find the right answer,so i request the site develper to please check that questios..........like "?:"is ternary operator neither "?::"given in oposition and after a for loop if there is semicolon then its not an error.............

In question 19 b and c have similar answer then why c is wrong...
In question 20 the output will be 5 because there is a semicolon after for loop so the statement executes only once and 5 will be added in b so why are you providing wrong answers...

Hi dude, its a great job, to maintain such a vast things and that to free & open to all, first of all my thanks to you. And in the test the 20th question :
"Question 20 :

The output of the following statement will be?
int a,b=0;
for(a=0;a<5;a++);
{
b+=5;
printf("%d",b);
}

Option A: 25

Option B: 30

Option C: 5

Option D: Error

Your Answer: C

Correct Answer: D

Explanation:There is a semicolon at the end of FOR loop so it's an error."

There is a conflict in this answer provided because we can use ; at the end of all conditional & looping statements(if, for, while, etc.). So, the output might be and there is no error. That's my point of view about that particular question. Please clarify it.

Hi dude, its a great job, to maintain such a vast things and that to free & open to all, first of all my thanks to you. And in the test the 20th question :
"Question 20 :

The output of the following statement will be?
int a,b=0;
for(a=0;a<5;a++);
{
b+=5;
printf("%d",b);
}

Option A: 25

Option B: 30

Option C: 5

Option D: Error

Your Answer: C

Correct Answer: D

Explanation:There is a semicolon at the end of FOR loop so it's an error."

There is a conflict in this answer provided because we can use ; at the end of all conditional & looping statements(if, for, while, etc.). So, the output might be and there is no error. That's my point of view about that particular question. Please clarify it.

Hi dude, its a great job, to maintain such a vast things and that to free & open to all, first of all my thanks to you. And in the test the 20th question :
"Question 20 :

The output of the following statement will be?
int a,b=0;
for(a=0;a<5;a++);
{
b+=5;
printf("%d",b);
}

Option A: 25

Option B: 30

Option C: 5

Option D: Error

Your Answer: C

Correct Answer: D

Explanation:There is a semicolon at the end of FOR loop so it's an error."

There is a conflict in this answer provided because we can use ; at the end of all conditional & looping statements(if, for, while, etc.). So, the output might be and there is no error. That's my point of view about that particular question. Please clarify it.

Hi dude, its a great job, to maintain such a vast things and that to free & open to all, first of all my thanks to you. And in the test the 20th question :
"Question 20 :

The output of the following statement will be?
int a,b=0;
for(a=0;a<5;a++);
{
b+=5;
printf("%d",b);
}

Option A: 25

Option B: 30

Option C: 5

Option D: Error

Your Answer: C

Correct Answer: D

Explanation:There is a semicolon at the end of FOR loop so it's an error."

There is a conflict in this answer provided because we can use ; at the end of all conditional & looping statements(if, for, while, etc.). So, the output might be and there is no error. That's my point of view about that particular question. Please clarify it.