What will be output when you will execute the following c code?
- Network
- N
- Garbage value
- Compilation error
- None of the above
Correct answer 3) Garbage value
Explanation:
The size of a character array should one greater than the total number of characters in any string which it stores. In c every string has one terminating null character. This represents the end of the string.
So Network String Has 8 characters which out of array size so it will print Garbage Value.
0 comments:
Post a Comment