Connect with us

C Language

Programming

In the context of while loop and Do while loop in C / C++, which of the following is not true

Correct Answer is: Both will be executed at least once

Explanation:

While loop

The condition is tested before the loop body is executed. If the condition is true, the loop body is executed, and then the condition is tested again. If the condition is false, the loop terminates.

Do while loop
A do while loop is similar to a while loop, but it is guaranteed to execute at least once.

Advertisement

Recently updated  

on

Q.#include
void main(void){
int shifty;
shifty=0570;
shifty=shifty>>4;
shifty=shifty<<6;
printf(“The value of shifty is %o \n”,shifty);
}

Q._____ in C language is also known as record.

Q.Which language is called as the second generation language ?

Q.The statement i++; is equivalent to:

Q.What is output of given c program:
main(){
int i = 8;
while(i=8){
printf(“Welcome on Govtexamresults”);
i++;
}
}

Q.Which statement is correct for get and put functions in c

Advertisement
Advertisement