278 views
0 votes
0 votes

Image may contain: text

1 Answer

Best answer
1 votes
1 votes

a[6] = 

'w' 'o' 'r' 'l' 'd' '\0'

 

after executing the loop a[6] look like as

'\0' 'd' 'l' 'l' 'd' '\0'

 

 

printf function stops printing the elements whenever it scans a null character.

therefore output is NULL String (nothing printed)

selected by

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
2 answers
4
atulcse asked Jan 15, 2022
687 views
Consider the following programint find (int n) { int a = 1; for (i = 1; i < = n; i ++) for (j = 1; j < = i; j++) for (k = 1; k <= j, k++) a = a + 1; ...