C Programming and Technical Programming Program

On a machine where pointers are 4 bytes long, what happens when the following code is
executed.
main()
{
int x=0,*p=0;
x++; p++;
printf ("%d and %d\n",x,p);
}
a) 1 and 1 is printed
b) 1 and 4 is printed
c) 4 and 4 is printed
d) causes an exception
CHOOSE THE CORRECT OPTION

Read Solution (Total 10)

C Other Question

There is an employer table with key fields as employer number data in every n'th row are
needed for a simple following queries will get required results.
(a) select A employee number from employee A , where exists from employee B where A employee
no. >= B employee having (count(*) mod n)=0
(b) select employee number from employe A, employe B where A employe number>=B employ
number group by employee number having(count(*) mod n=0 )
(c) both (a) & (b)
(d) none of the above
CHOOSE THE CORRECT OPTION
‪#‎include‬
int print(int n)
{
if(n==0)
return 0;
print(n-1);
printf("%dn",n);
}
int main()
{
int n=0,x=3;
n=print(x);
printf("%dn",n);
return 0;
}
explain the o/p?