a=0;
while(a<5)
printf("%d\n",a++);
how many times does the loop occurs?
a.infinite
b.5
c.4
d.6

Answer Posted / vikram

the output will be:
0
1
2
3
4
hence the loop will be executed 5 times,hence the answer is b

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a code of a general series where the next element is the sum of last k terms.

597


What is an auto keyword in c?

644


Explain what is the benefit of using const for declaring constants?

617


Write a program to reverse a given number in c?

602


How does sizeof know array size?

631






develop algorithms to add polynomials (i) in one variable

1746


What are the preprocessor categories?

640


How many header files are in c?

554


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2239


What is the function of multilevel pointer in c?

672


Write a simple code fragment that will check if a number is positive or negative.

709


Is the exit() function same as the return statement? Explain.

665


Explain what is output redirection?

669


Is python a c language?

553


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1382