0% found this document useful (0 votes)
12 views10 pages

Data Type and Operator

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

Data Type and Operator

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

Sheet1

Question type

Page 1
Sheet1

Page 2
Sheet1
#include<stdio.h>
int
Question main(){
#include<stdio.h>
char
int main() *ptr;
printf("%d
#include<stdio.h>
{ %d", sizeof(*ptr), sizeof(ptr));
int return 0; int num=65533;
#include<stdio.h>
main()
unsigned
}{printf("%d",
int m() num);
{char returnnum
0; = 254;
}static int numnum);
printf("%d",
#include<stdio.h> = 6;
int printf("%d
return 0;
main() ",num--);
#include<stdio.h>
}{if(num)
int m();main()
{printf(" %%% ");
#include<stdio.h>
return 0;
int return
num0;= 9;
}}intmain()
#include<stdio.h>
{intprintf ("%d %d", num << 1, num >> 1);
main()
int num
return 0;= 5;
{#include<stdio.h>
printf ("%d",num<<1+2);
}int a = 2, b = 2, c = 0, d = 2, m;
int main()
return 0;
{}m = a++ && b++ && c++ || d++;
#include<stdio.h>
printf("%d
int
intmain() %d %d %d %d",a, b, c, d, m);
num = 32767;
{return 0;
printf("%d", ~num);
}int x =0;
return 2;
}(x & 1) ? printf("TRUE") : printf("FALSE");
return 0;
}

Page 3
Sheet1

Page 4
Sheet1

RC Question ID correct option number Option 1

1 14

1 -3

3 254

2 Compile Error

3 Error

2 18 9

2 12

2 Compile Error

4 0

3 Compile Error

Page 5
Sheet1

Page 6
Sheet1

Option 2 Option 3

24 44

65533 -32768

-128 -2

654321 54321

%%% %%

18 4 9 18

40 20

33131 33130

32768 -1

1 0

Page 7
Sheet1

Page 8
Sheet1

Option 4

12

Error

Error

Run Time Error

NONE

NONE

NONE

-32768

Run Time Error

Page 9
Sheet1

Page 10

You might also like