aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming Languages: Perl, Java, and C
  • #include main(){ int a=2; int *p=&a; print("%x\t",p);...
Multiple choice technology programming languages

#include main(){ int a=2; int *p=&a; print("%x\t",p); print("%x\t",*p++); print("%x\t",p); }

  1. someaddress value someaddress

  2. value value value

  3. syntax error

  4. compilation error

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • 1)void main() { int const *p = 5; printf(“%d”,++(*p)); }
  • void main() { int i = 10; int *p=&i; p++; printf("%d",(p-&i)); }
  • #include main() { int a[2][2][2] = {{10,2,3,4},{5,6,7,8}}; int *p,*q; p=&a[2][2][2]; *q=***a printf("%d----...
  • #include main(){ extern int i; i=23; printf("%d",i); }
  • #include main (){ char c[] = "Hello"; char *p = "Hello"; printf("Size of c: %d Addr of c:%x\n",sizeof(c),c); }
  • void main() { int i = 10; long *p=&i; p++; printf("%d",(p-&i)); }
  • void main() { int i=3; int *j, **k; j=&i; k=&j; printf("%u%u%d", k, *k, **k);}
  • #include main (){ unsigned int a = 0xf0ad; char *c = (char *) &a; printf("value @c: %x",*c); }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy