Which of the following operator takes only integer operands? / % None of these + * TRUE ANSWER : ? YOUR ANSWER : ?
Which of following is not a valid name for a C variable? Both A and B Exam_veda Examians None of these Exam veda TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#include<stdio.h>void main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);} M P None of These N TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); } 0x1234ABCD, 10, 10 Syntax error 0x1234ABCD, 0x1234ABCD, 0x1234ABCD Runtime error 0x1234ABCD, 0x1234ABCD, 10 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output given program?#include<stdio.h>void main(){int i = -10;for(;i;printf("%d ", i++));} -10 to infinite -10 to 0 Complier error -10 to -1 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i; char a[]="�"; if(printf("%sn", a)) printf("Ok here n"); else printf("Forget itn");} Error None of These Ok here Forget it TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} Garbage value 0 0 0 0 Garbage Value Code will not compile Garbage vlaue Garbage Value TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ static int i=5; if(--i){ main(); printf("%d ", i); }} 0 0 0 0 5 4 3 2 1 None of These Infinite Loop TRUE ANSWER : ? YOUR ANSWER : ?
#include<stdio.h>void main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 10, 11 10, 10 11, 11 11, 10 TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} h Garbage Value hi followed by garbage value hi Error TRUE ANSWER : ? YOUR ANSWER : ?