What is the output of this C code? void main() { int x = 0; int *ptr = &x; printf("%p ", ptr); ptr++; printf("%p ", ptr); }

Question:
What is the output of this C code?

void main()
{
int x = 0;
int *ptr = &x;
printf("%p
", ptr);
ptr++;
printf("%p
 ", ptr);
}

1. 0xbfd605e8 0xbfd605ec

2.0xbfd605e8 0cbfd60520

3.0xbfd605e8 0xbfd605e9

4.Run time error

Posted Date:-2022-03-20 09:12:54


More MCQS Questions and answers

Search
Olete Team
Online Exam Test Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Test website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!