C Programming

Time: 00:00:00
0
Attempted
11
Not Attempted
0
Marked For Review
0
Attempted & Reviewed

Question 1 of 11

What will be the output of the following program if 'n' key is pressed after execution of program?
#include<stdio.h>
#include<process.h>
void main()
{char ch;
printf("enter Y/y to continue");
scanf("%c",&ch);
if(ch=='y' || ch=='Y')
printf("Yes");
else
exit(1);
}

Consider the letters written like A, B, C, V are the keys prssed by user. User can press any key, we have considered following keys has been prssed.

Select Your Answer:

All Questions

Attempted
Not Attempted
Marked for Review
Attempted & Reviewed
Current