c Basic level test

what is the output of the following program?

main()

{

printf("%c","abcdefghi"[6]);

}


main()

{

printf("this contains %d",printf("\n"));

}


main()

{

int a[]={1,2,3,4,5};

int *p=a;

int **p2=a;

printf("%d,%d",sizeof(p),sizeof(p2));

}

assume int takes 4 bytes


main()

{

int j[]={1,2,3,4};

printf("%d",*(j+j[0]));

}


static int h;

int main()

{

int h=call();

printf("h=%d",h);getch();

}

call()

{return h;}




































Description:

This test consists of 5 questions...only basic level

Discussion

Umam

http://goo.gl/TLJKhQ http://bit.ly/2bgLGS7
Bijih logam yang ditemukan dengan cara penambangan terlebih dahulu dilakukan proses pendahuluan sebelum diolah dalam dapur pengolahan logam dengan cara dipecah

2167 days 18 hours 41 minutes ago

Umam

Sobatkitalanjutmnbahastentanglogambesi
listrik dan panas, serta mempunyai titik cair tinggi. Bijih logam ditemukan dengan cara penambangan yang terdapat dalam keadaan murni atau bercampur dengan unsur-unsur
http://goo.gl/pWtlO9 http://bit.ly/2bz4aJD<See more

2167 days 18 hours 45 minutes ago

Amnanasir

nice

2198 days 13 hours 36 minutes ago

Lokesh Sisodiya

thanks sai u have a good job

3161 days 14 hours 17 minutes ago

sairam

PAPER WAS O.K BUT LITTLE BIT CONFUSE

4005 days 16 hours 4 minutes ago

sairam

PAPER WAS O.K BUT LITTLE BIT CONFUSE

4005 days 16 hours 4 minutes ago

mohanapriya c

thanksss sai:)

4047 days 13 hours 46 minutes ago

nalini bysani

paper was good bt some questions not clear

4189 days 17 hours 7 minutes ago

kalai

good

4365 days 11 hours 53 minutes ago

2 Followers
Test: 1

Your Facebook Friends on WizIQ