M
Q. What will be the output of the following code snippet?
Code:
#include <stdio.h>
#define VAL 5
int getInput() {
return VAL;
}
void solve() {
const int x = getInput();
printf("%d", x);
}
int main() {
solve();
return 0;
}
#define VAL 5
int getInput() {
return VAL;
}
void solve() {
const int x = getInput();
printf("%d", x);
}
int main() {
solve();
return 0;
}
- Correct Answer - Option(A)
- Views: 149
- Filed under category C Programming
Discusssion
Login to discuss.