Bartleby Related Questions Icon

Related questions

Question
Please explain this question
void main()
{int a =300;
char *ptr = (char*) &a ;
ptr ++;
*ptr =2;
printf("%d", a);
}
expand button
Transcribed Image Text:Please explain this question void main() {int a =300; char *ptr = (char*) &a ; ptr ++; *ptr =2; printf("%d", a); }
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Similar questions