Q 1.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
int a;
printf("Enter number: ");
scanf("%5d", &a); //input 1234567
printf("%d", a);
return 0;
}
Q 2.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
char str[10];
int x;
scanf("%d:%4s",&x,str);// Enter 10:FliQi as input
printf("%d : %s",x, str);
return 0;
}
Q 3.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
char ch=65;
printf("%c\n", ch);
return 0;
}
Q 4.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
char ch;
scanf("%c", &ch); // input is 97
printf("%d\n", ch-32);
return 0;
}
Q 5.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
char ch;
scanf("%c", &ch); // input is a
printf("%c\n", ch-32);
return 0;
}
Q 6.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
char ch;
scanf("%c", &ch); // input is A
printf("%c\n", ch+32);
return 0;
}
Q 7.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
char ch;
scanf("%c", &ch); // input is 65
printf("%d\n", ch);
return 0;
}
Q 8.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
char ch;
scanf("%c", &ch); // input is A
printf("%d\n", ch);
return 0;
}
Q 9.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
char ch;
scanf("%c", &ch); // input is A
printf("%c\n", ch);
return 0;
}
Q 10.
What will be the output of the following snippet? / निम्नलिखित स्निपेट का आउटपुट क्या होगा?
#include <stdio.h>
int main()
{
char str[20];
scanf("%s", str); // input is FliQi Education
printf("%s\n", str);
return 0;
}