Digital-Logic-Design
October 13, 2023
UGC NET CS 2007 June-Paper-2
October 13, 2023
Digital-Logic-Design
October 13, 2023
UGC NET CS 2007 June-Paper-2
October 13, 2023

UGC NET CS 2007 June-Paper-2

Question 11
The following loop in ‘C’ :
int i=0;
while (i++ < 0)
i– ;
A
will terminate
B
will go into an infinite loop
C
will give compilation error
D
will never be executed
Question 11 Explanation: 
#include
void main()
{
int i=0;
while(i++ < 0)
{
i–;
printf(“%d”,i);
}
}
/* It will terminate null value */
Correct Answer: A
Question 11 Explanation: 
#include
void main()
{
int i=0;
while(i++ < 0)
{
i–;
printf(“%d”,i);
}
}
/* It will terminate null value */
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments

The question is about the loop not the whole program
Answer:
The loop will never be executed

0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!