0 votes
0 answers
81
0 votes
1 answer
82
1 votes
1 answer
83
#include <stdio.h #define crypt(s,t,u,m,p,e,d) m s u t #define begin crypt(a,n,i,m,a,t,e) int begin() { printf("Hello\n"); return 0; }Options are :(a) Hello (b) Link erro...
0 votes
2 answers
84
#include<stdio.h int main() { int a[10][20][30]={0}; printf("%ld",&a+1 - &a); return 0; }
0 votes
1 answer
85
#include<stdio.h int main() { int a[10][20][30] = {0}; int *b = a; int *c = a+1; printf("%ld", c-b); return 0; }
0 votes
1 answer
87
#include<stdio.h int main() { char str[] = {'a','b','c','\0'}; str[0] -= 32; printf("%s",str); return 0; }
0 votes
2 answers
88
int foo( int a, int b) { int c = a-b; c = c&(0x80000000); return (!c)*a +(!!c)*b; }
0 votes
0 answers
89
0 votes
0 answers
90
unsigned fun(unsigned a, unsigned b) { int i; unsigned j = 0; for(i = 0; i < 32; i++) { j <<= 1; j += !!(a & 0x80000000); a <<= 1; if(j >=b) { j -= b; a++; } } return a; ...
0 votes
1 answer
91
main() { int c=- -2; printf("c=%d",c); }
0 votes
2 answers
92
void main() { unsigned giveit=-1; int gotit; printf("%u ",++giveit); printf("%u \n",gotit= giveit); }
0 votes
1 answer
93
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }
1 votes
1 answer
94
main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }
0 votes
2 answers
95
void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }
0 votes
1 answer
96
void main() { int i=10, j=2; int *ip= &i, *jp = &j; int k = *ip/*jp; printf(&ldquo;%d&rdquo;,k); }
0 votes
2 answers
97
main() { { extern int i; int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;
0 votes
2 answers
98
main() { printf("%x",-1<<4); }
0 votes
1 answer
99
main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }
1 votes
2 answers
100
Assume that the size of an integer is 4 bytes. Predict the output?#include <stdio.h int fun() { puts(" Hello "); return 10; } int main() { printf("%d", sizeof(fun())); re...