yes fg should be printed
@Bhagyashree Mukherje,
it's my suggestion ( neither request nor order ),
when you dealing with variable memory addresses and pointer memory addresses, take integer size=4B and Pointer Size=2B
it will help you for more understanding
Mayankprakash when we use %s it takes the starting address and print it till \0.
in this case let addresses be like
starting address of "efg" which is 100 , starting address of "efg" +1 means 104 so, %s will start from address 104 and print till \0
64.3k questions
77.9k answers
244k comments
80.0k users