Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
5 views4 pages

Exp 3

Uploaded by

Mai Gado
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Exp 3

Uploaded by

Mai Gado
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

#include<stdio.

h>
int main()
{
int =-3, =2, =0, ;
= ++ && ++ && ++ ;
printf("%d, %d, %d, %d\n", , , , );
return 0;
}

int i=-3, j=2, k=0, m; i, j, k, m


i, j, k

m = ++i && ++j && ++k;


m = -2 && 3 && 1;
m = TRUE && TRUE;

printf("%d, %d, %d, %d\n", i, j, k, m);

#include<stdio.h>

int main()
{
printf("%x\n", -2<<2);
return 0;
}
#include<stdio.h>
int main()
{
int =-3, =2, =0, ;
= ++ || ++ && ++ ;
printf("%d, %d, %d, %d\n", , , , );
return 0;
}

int i=-3, j=2, k=0, m; i, j, k, m


i, j, k

m = ++i || ++j && ++k;

m = -2 || ++j && ++k;


m = TRUE || ++j && ++k;

printf("%d, %d, %d, %d\n", i, j, k, m); 'i'


j,k
#include<stdio.h>
int main()
{
int =12, =7, ;
= !=4 || == 2;
printf("z=%d\n", );
return 0;
}

int x=12, y=7, z; x, y z x


y

z = x!=4 || y == 2;
z = 12!=4 || 7 == 2;
z = (condition true) || (condition false); z=1

printf("z=%d\n", z);

#include<stdio.h>
int main()
{
static int [20];
int = 0;
[ ] = ;
printf("%d, %d, %d\n", [0], [1], );
return 0;
}
static int a[20]; a
static

int i = 0; i
a[i] = i ; a[0] = 0;
printf("%d, %d, %d\n", a[0], a[1], i);

You might also like