Question: Consider the following code snippet int main ( ) { char * cptr = Hello - world!; int * iptr = ( int * )

Consider the following code snippet
int main(){ char *cptr = "Hello-world!"; int *iptr =(int *) cptr; int cnt =0; printf("%s
", cptr); printf("%s
", iptr); printf("%s
", cptr+1); printf("%s
", iptr+1); for (cnt =0; cnt <13; ++cnt){ printf("[loop]%s
", cptr+cnt); printf("[loop]%s
", iptr+cnt); } return 0; }
Which of the following statements is false?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!