![]() Related Questions For the following program.
struct XXX
{int a;
float b;
char *s;
}X;
If optimization :X not used in compiler then unused bits_________________.
Give your assumption_______________.
Give the output of the following program
struct XXX
{int a:6;
float b:4;
char s;
}structure;
size of Give the output of the following program
struct XXX
{int a:6;
float b:4;
char s;
}structure;
size of (structure); Latest Answer : 64 bits (1 int =2, 1 float =4 , 1 char pointer 2 = 2 : total 8 byte so 64 bits) ... Give the difference between monolithic and microlithic kernal:
A. monolithic large
B. microlithic used in embedded systems.
C. none Give the output of the following program
main()
{char *s;
s="hot java";
strcpy(s,"solarrs java")
} Give the output of the following program when redirected to a screen what will be printed?
main()
{printf("hot java");
fork()
exit(0);
} Give the output of the following program when redirected to file what will be printed.
main()
{printf("hot java");
fork()
exit(0);
} Give the output of the following program
main()
{int ret;
ret=fork();ret=fork();ret=fork();ret=fork();
if(!ret)
printf("sun");
else
printf("solaris"); Give the output of the following program
main()
{char *p='a';
int *i=100/*p;
}
what will be the value of *i= 1
Find the error in the following program
struct point
{struct point *next;
int data;
}
x;
main()
{int Find the error in the following program
struct point
{struct point *next;
int data;
}
x;
main()
{int i;
for(x=p;x!=0;)
x=x->next,x++;
freelist(x);
}
freelist(x)
{free(x);
return
}
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||