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

1965 days 47 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

1965 days 50 minutes ago

Amnanasir

nice

1995 days 19 hours 41 minutes ago

Lokesh Sisodiya

thanks sai u have a good job

2958 days 20 hours 23 minutes ago

sairam

PAPER WAS O.K BUT LITTLE BIT CONFUSE

3802 days 22 hours 10 minutes ago

sairam

PAPER WAS O.K BUT LITTLE BIT CONFUSE

3802 days 22 hours 10 minutes ago

mohanapriya c

thanksss sai:)

3844 days 19 hours 51 minutes ago

nalini bysani

paper was good bt some questions not clear

3986 days 23 hours 13 minutes ago

kalai

good

4162 days 17 hours 58 minutes ago

2 Followers
Test: 1

Your Facebook Friends on WizIQ