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
Write a code of a general series where the next element is the sum of last k terms.
What is an auto keyword in c?
Explain what is the benefit of using const for declaring constants?
Write a program to reverse a given number in c?
How does sizeof know array size?
develop algorithms to add polynomials (i) in one variable
What are the preprocessor categories?
How many header files are in c?
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
What is the function of multilevel pointer in c?
Write a simple code fragment that will check if a number is positive or negative.
Is the exit() function same as the return statement? Explain.
Explain what is output redirection?
Is python a c language?
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.