What is the execution result of running the following C++ program? Assuming that &a[0]=0XF000, The ASCII code of ‘A’ is 65 ,‘a’ is 97and ‘0’ is 48. Comment on your result with details. int main ()...


What is the execution result of running the following C++ program? Assuming that &a[0]=0XF000, The ASCII code of ‘A’ is 65 ,‘a’ is 97and ‘0’ is 48. Comment on your result with details.


#include<stdio.h><br>int main () {<br>int a[4]={101,65,97,100};<br>int *p=&a[0];<br>printf(

Extracted text: #include int main () { int a[4]={101,65,97,100}; int *p=&a[0]; printf("\n%c %x", *p,p); p++; (*p) +=11; printf ("\n%c 8x", *p,p); p--; printf("\n%c %x",*p,p); p+=2; printf("\n%c %x", *p,p); (*p) +=17; printf ("\n%c %x", *p,p); (*p) -=4; printf("\n%c 8x", *p,p); (*p) -=5; printf("\n%c %x", *p,p); p++; (*p) +=10; printf("\n%c 8x",*p,p); (*p) -=7; printf("\n%c %x", *p,p); return 0; }

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here