A
Q. What is the output of this code?
Code:
#include <stdio.h>
void func(int* p) {
*p = 20;
}
int main() {
int x = 10;
func(&x);
printf("%d", x);
return 0;
}
void func(int* p) {
*p = 20;
}
int main() {
int x = 10;
func(&x);
printf("%d", x);
return 0;
}
- Correct Answer - Option(B)
- Views: 6
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.