Question: WRITE OUTPUT OF THE FOLLOWING CODES + Write down the output of the following code Code Output 3. int main() { char str1[]=string: char str2[8];
WRITE OUTPUT OF THE FOLLOWING CODES

![the following code Code Output 3. int main() { char str1[]="string": char](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39fd82532f_19966f39fd7ba2e0.jpg)
![str2[8]; strcpy(str2,str1); strcat(str2," helps in programming"); printf("%s",str2); return 0; } 4. int](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39fd8ac2ff_20066f39fd85914b.jpg)
+ Write down the output of the following code Code Output 3. int main() { char str1[]="string": char str2[8]; strcpy(str2,str1); strcat(str2," helps in programming"); printf("%s",str2); return 0; } 4. int main() { char country[]="Pakistan"; char *ptr; ptr=country; while(*ptr != '\0') { printf("%c", *ptr); ptr++; } return 0; } C H 5. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
