edited by
269 views

2 Answers

4 votes
4 votes
p = fun();

Here, fun() returns a pointer which is having heap memory (have lifetime scope). So, $*p = 1$ which is assigned inside fun.

Correct Answer: $1$
edited by
Answer:

Related questions

6 votes
6 votes
1 answer
1
gatecse asked Jul 26, 2020
562 views
What will be the output of the following C program?(Assume IEEE -$754$ standard being Used)#include<stdio.h int main() { float a = 8.0625; if(a == 8.0625) { printf("1"); ...
5 votes
5 votes
1 answer
4
gatecse asked Jul 26, 2020
314 views
What will be the maximum value printed by the following C program?#include<stdio.h int main() { int i = 0; char* p = "THISISRIDICULOUS"; while(*(p+i) != '\0') { printf("%...