Determine Output:
void main()
{
int i=0, j=0;
if(i && j++)
printf("%d..%d", i++, j);
printf("%d..%d", i, j);
}
Determine Output:
void main()
{
int i=0, j=0;
if(i && j++)
printf("%d..%d", i++, j);
printf("%d..%d", i, j);
}
Determine Output:
#define clrscr() 100
void main()
{
clrscr();
printf("%d", clrscr());
}
Determine Output:
#define clrscr() 100
void main()
{
clrscr();
printf("%d", clrscr());
}
Determine Output:
void main()
{
printf("%p", main);
}
Determine Output:
void main()
{
printf("%p", main);
}
Determine Output:
void main()
{
int i=1, j=2;
switch(i)
{
case 1: printf("GOOD"); break;
case j: printf("BAD"); break;
}
}
Determine Output:
void main()
{
int i=1, j=2;
switch(i)
{
case 1: printf("GOOD"); break;
case j: printf("BAD"); break;
}
}
Determine Output:
void main()
{
char far *farther, *farthest;
printf("%d..%d", sizeof(farther), sizeof(farthest));
}
Determine Output:
void main()
{
char far *farther, *farthest;
printf("%d..%d", sizeof(farther), sizeof(farthest));
}
Determine Output:
void main()
{
static int var = 5;
printf("%d ", var--);
if(var)
main();
}
Determine Output:
void main()
{
static int var = 5;
printf("%d ", var--);
if(var)
main();
}
Determine Output:
void main()
{
char s[]="man";
int i;
for(i=0; s[i]; i++)
printf("%c%c%c%c ", s[i], *(s+i), *(i+s), i[s]);
}
Determine Output:
void main()
{
char s[]="man";
int i;
for(i=0; s[i]; i++)
printf("%c%c%c%c ", s[i], *(s+i), *(i+s), i[s]);
}
Determine Output:
void main()
{
int c[] = {2.8,3.4,4,6.7,5};
int j, *p=c, *q=c;
for(j=0;j<5;j++){
printf(" %d ", *c);
++q;
}
for(j=0;j<5;j++){
printf(" %d ", *p);
++p;
}
}
Determine Output:
void main()
{
int c[] = {2.8,3.4,4,6.7,5};
int j, *p=c, *q=c;
for(j=0;j<5;j++){
printf(" %d ", *c);
++q;
}
for(j=0;j<5;j++){
printf(" %d ", *p);
++p;
}
}
Determine Output:
void main()
{
int i=0;
for(;i++;printf("%d", i));
printf("%d", i);
}
Determine Output:
void main()
{
int i=0;
for(;i++;printf("%d", i));
printf("%d", i);
}
Determine Output:
void main()
{
int i=1;
while(i<=5)
{
printf("%d", i);
if(i>2)
goto here;
i++;
}
}
fun()
{
here: printf("PP");
}
Determine Output:
void main()
{
int i=1;
while(i<=5)
{
printf("%d", i);
if(i>2)
goto here;
i++;
}
}
fun()
{
here: printf("PP");
}
Determine Output:
void main()
{
char p[]="%dn";
p[1] = 'c';
printf(p, 65);
}
Determine Output:
void main()
{
char p[]="%dn";
p[1] = 'c';
printf(p, 65);
}
Determine Output:
void main()
{
static int i=5;
if(--i){
main();
printf("%d ", i);
}
}
Determine Output:
void main()
{
static int i=5;
if(--i){
main();
printf("%d ", i);
}
}
Determine Output:
void main()
{
int i=i++, j=j++, k=k++;
printf("%d %d %d", i, j, k);
}
Determine Output:
void main()
{
int i=i++, j=j++, k=k++;
printf("%d %d %d", i, j, k);
}
Determine the Final Output:
void main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}
Determine the Final Output:
void main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}
Determine Output:
#define int char
void main()
{
int i = 65;
printf("sizeof(i)=%d", sizeof(i));
}
Determine Output:
#define int char
void main()
{
int i = 65;
printf("sizeof(i)=%d", sizeof(i));
}
Determine Output:
void main()
{
int i=5, j=6, z;
printf("%d", i+++j);
}
Determine Output:
void main()
{
int i=5, j=6, z;
printf("%d", i+++j);
}
Determine Output:
void main()
{
int i=10;
i=!i>14;
printf("i=%d", i);
}
Determine Output:
void main()
{
int i=10;
i=!i>14;
printf("i=%d", i);
}
Determine Output:
void main()
{
char *p;
printf("%d %d", sizeof(*p), sizeof(p));
}
Determine Output:
void main()
{
char *p;
printf("%d %d", sizeof(*p), sizeof(p));
}
Determine Output:
void main()
{
int i = -1;
+i;
printf("i = %d, +i = %d", i, +i);
}
Determine Output:
void main()
{
int i = -1;
+i;
printf("i = %d, +i = %d", i, +i);
}
Determine Output:
void main()
{
int i=-1, j=-1, k=0, l=2, m;
m = i++ && j++ && k++ || l++;
printf("%d %d %d %d %d", i, j, k, l, m);
}
Determine Output:
void main()
{
int i=-1, j=-1, k=0, l=2, m;
m = i++ && j++ && k++ || l++;
printf("%d %d %d %d %d", i, j, k, l, m);
}
Determine Output:
void main()
{
static char *s[] = {"black", "white", "yellow", "violet"};
char **ptr[] = {s+3, s+2, s+1, s}, ***p;
p = ptr;
++p;
printf("%s",*--*++p + 3);
}
Determine Output:
void main()
{
static char *s[] = {"black", "white", "yellow", "violet"};
char **ptr[] = {s+3, s+2, s+1, s}, ***p;
p = ptr;
++p;
printf("%s",*--*++p + 3);
}
Determine Output:
void main()
{
static int i=i++, j=j++, k=k++;
printf("%d %d %d", i, j, k);
}
Determine Output:
void main()
{
static int i=i++, j=j++, k=k++;
printf("%d %d %d", i, j, k);
}
Determine Output:
void main()
{
char *p="hi friends", *p1;
p1=p;
while(*p!='\0') ++*p++;
printf("%s", p1);
}
Determine Output:
void main()
{
char *p="hi friends", *p1;
p1=p;
while(*p!='\0') ++*p++;
printf("%s", p1);
}
Determine output:
void main()
{
int const *p=5;
printf("%d", ++(*p));
}
Determine output:
void main()
{
int const *p=5;
printf("%d", ++(*p));
}
Determine Output:
#define prod(a,b) a*b
void main()
{
int x=3, y=4;
printf("%d", prod(x+2, y-1));
}
Determine Output:
#define prod(a,b) a*b
void main()
{
int x=3, y=4;
printf("%d", prod(x+2, y-1));
}
Determine Output:
void main()
{
struct xx
{
int x=3;
char name[] = "hello";
};
struct xx *s = malloc(sizeof(struct xx));
printf("%d", s->x);
printf("%s", s->name);
}
Determine Output:
void main()
{
struct xx
{
int x=3;
char name[] = "hello";
};
struct xx *s = malloc(sizeof(struct xx));
printf("%d", s->x);
printf("%s", s->name);
}
Determine Output:
void main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("I hate Examveda");
else
printf("I love Examveda");
}
Determine Output:
void main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("I hate Examveda");
else
printf("I love Examveda");
}
Determine Output:
#include<stdio.h>
void main()
{
register i=5;
char j[]= "hello";
printf("%s %d", j, i);
}
Determine Output:
#include<stdio.h>
void main()
{
register i=5;
char j[]= "hello";
printf("%s %d", j, i);
}
Determine Output:
void main()
{
char *str1 = "abcd";
char str2[] = "abcd";
printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));
}
Determine Output:
void main()
{
char *str1 = "abcd";
char str2[] = "abcd";
printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));
}
Determine Output:
void main()
{
int i;
char a[]="�";
if(printf("%sn", a))
printf("Ok here n");
else
printf("Forget itn");
}
Determine Output:
void main()
{
int i;
char a[]="�";
if(printf("%sn", a))
printf("Ok here n");
else
printf("Forget itn");
}
Determine Output:
void main()
{
char a[]="12345";
int i = strlen(a);
printf("%d", ++i);
}
Determine Output:
void main()
{
char a[]="12345";
int i = strlen(a);
printf("%d", ++i);
}
Determine Output:
#include<stdio.h>
#define a 10
void main()
{
#define a 50
printf("%d", a);
}
Determine Output:
#include<stdio.h>
#define a 10
void main()
{
#define a 50
printf("%d", a);
}
Determine Output:
void main()
{
int a[] = {10,20,30,40,50}, j, *p;
for(j=0; j<5; j++){
printf("%d" ,*a);
a++;
}
p = a;
for(j=0; j<5; j++){
printf("%d" ,*p);
p++;
}
}
Determine Output:
void main()
{
int a[] = {10,20,30,40,50}, j, *p;
for(j=0; j<5; j++){
printf("%d" ,*a);
a++;
}
p = a;
for(j=0; j<5; j++){
printf("%d" ,*p);
p++;
}
}
Determine Output:
void main()
{
int i=5;
printf("%d%d%d%d%d", i++, i--, ++i, --i, i);
}
Determine Output:
void main()
{
int i=5;
printf("%d%d%d%d%d", i++, i--, ++i, --i, i);
}
Determine Output:
void main()
{
char *p;
p="Hello";
printf("%c", *&*p);
}
Determine Output:
void main()
{
char *p;
p="Hello";
printf("%c", *&*p);
}
Determine Output:
void main()
{
char *p;
p="%dn";
p++;
p++;
printf(p-2, 300);
}
Determine Output:
void main()
{
char *p;
p="%dn";
p++;
p++;
printf(p-2, 300);
}
Determine Output:
void main()
{
int c = - -2;
printf("c=%d", c);
}
Determine Output:
void main()
{
int c = - -2;
printf("c=%d", c);
}
Determine Output:
void main()
{
char not;
not = !2;
printf("%d", not);
}
Determine Output:
void main()
{
char not;
not = !2;
printf("%d", not);
}
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);
}
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);
}
Determine Output:
void main()
{
char string[]="Hello World";
display(string);
}
void display(char *string)
{
printf("%s", string);
}
Determine Output:
void main()
{
char string[]="Hello World";
display(string);
}
void display(char *string)
{
printf("%s", string);
}
Determine output:
void main()
{
extern int i;
i=20;
printf("%d", sizeof(i));
}
Determine output:
void main()
{
extern int i;
i=20;
printf("%d", sizeof(i));
}
Determine Output:
void main()
{
int i = abc(10);
printf("%d", --i);
}
int abc(int i)
{
return(i++);
}
Determine Output:
void main()
{
int i = abc(10);
printf("%d", --i);
}
int abc(int i)
{
return(i++);
}
Determine Output:
#define square(x) x*x
void main()
{
int i;
i = 64/square(4);
printf("%d", i);
}
Determine Output:
#define square(x) x*x
void main()
{
int i;
i = 64/square(4);
printf("%d", i);
}
Determine Output:
void main()
{
int i;
printf("%d", scanf("%d", &i));
}
Determine Output:
void main()
{
int i;
printf("%d", scanf("%d", &i));
}
Determine Output:
void main()
{
int i=3;
switch(i)
{
default: printf("zero");
case 1: printf("one"); break;
case 2: printf("two"); break;
case 3: printf("three"); break;
}
}
Determine Output:
void main()
{
int i=3;
switch(i)
{
default: printf("zero");
case 1: printf("one"); break;
case 2: printf("two"); break;
case 3: printf("three"); break;
}
}