aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java and C Programming Fundamentals
  • #include int main() { int p[]={1,2,3}; printf("%d %d",p,(...
Multiple choice technology programming languages

#include<stdio.h> int main() { int p[]={1,2,3}; printf("%d %d",p,(&p)+1); } If address of p is -123456 and int occupies 4 bytes then what would be the output?

  1. Compile Time Error

  2. -123456, -123460

  3. -123456, -123444

  4. -123456, -123452

  5. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • #include main (){ char c[] = "Hello"; char *p = "Hello"; printf("Size of c: %d Addr of c:%x\n",sizeof(c),c); }
  • #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(){ int a=2; int *p=&a; print("%x\t",p); print("%x\t",*p++); print("%x\t",p); }
  • #include int main() { int main=7; printf("%d",main); }
  • What is the output of the following? int main() { ... int *p=new int(87); ... }
  • What will be the output of the following program : void main() { printf("%d",sizeof(integer)); }
  • void main() { int i = 10; long *p=&i; p++; printf("%d",abs(&i-p)); }
  • main() { int *p1, i=25; void *p2; p1=&i; p2=&i; p1=p2; p2=p1; printf(“%d”,i); }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy