void main()
{
int a=1;
while(a++<=1)
while(a++<=2);
}

Answer Posted / dheerendra

it gives error,
because any loop can't be terminated by ';'

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does not c have an exponentiation operator?

620


What is pointer to pointer in c?

626


explain what are pointers?

610


What does %p mean c?

617


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

681






What are the 4 types of functions?

561


Write a c program to demonstrate character and string constants?

1676


What is the difference between strcpy() and memcpy() function in c programming?

618


Where static variables are stored in memory in c?

517


What are keywords in c with examples?

597


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2213


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

894


What is s in c?

600


ATM machine and railway reservation class/object diagram

4792


What is f'n in math?

610