4 like 0 dislike
249 views

#include <stdio.h>

int main()

{

char str1[] = "abc";

char str2[] = "efg";

str2[4] = 'w';

printf("%c\n", str1[0]);

return 0;

}

Please explain.

 

References: C From Theory

 

[Normal] Essay (Open question) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21960 - Available when: Unlimited - Due to: Unlimited

edited by | 249 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.178.57
©2016-2024

Related questions

4 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21962 - Available when: Unlimited - Due to: Unlimited
| 215 views
4 like 0 dislike
1 answer
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21968 - Available when: Unlimited - Due to: Unlimited
| 297 views
4 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21964 - Available when: Unlimited - Due to: Unlimited
| 239 views
4 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21961 - Available when: Unlimited - Due to: Unlimited
| 219 views
5 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 19, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21978 - Available when: Unlimited - Due to: Unlimited
| 259 views
12,783 questions
183,443 answers
172,219 comments
4,824 users