Question 1 What is the output of the following program if x = 7?
Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.
What is the output of the following program if x = 7?
#include<stdio.h>
int main(){
int x=7, *ptr, **s;
ptr = &x;
*ptr(s) = &x;
s = &ptr;
printf("%d",**s);
return 0;
}
**
Show answer & explanation
Answer: A. A) 7
Verified technical evaluation based on core computer science and mathematical principles.
Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.