void main()
{
int a=1;
while(a++<=1)
while(a++<=2);
}
Answer Posted / madhavi
1<=1, a=2 (true)(first while)
2<=2,a=3 (true)(second while)
3<=3,a=4 (false)(second while)
4<=1,a=5 (false)(first while)
the loops are in nesting ,the second while is the loop body
of the first while loop
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
How can I list all of the predefined identifiers?
What is declaration and definition in c?
How does sizeof know array size?
Write a program to implement queue.
Is file a keyword in c?
in linking some of os executables are linking name some of them
What is difference between union and structure in c?
explain what are actual arguments?
What is structure in c language?
Are negative numbers true in c?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What is null in c?