Page 1 of 1

Comment on the output of the following C code. #include <stdio.h> int main() { char *str = "This" //Line 1

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
a) Memory holding “this” is cleared at line 3
b) Memory holding “this” loses its reference at line 3
c) You cannot assign pointer like in Line 3
d) Output will be This, Program