What will be the output of the following C code?
#include<stdio.h>
void f()
{
#define sf 100
printf("%d",sf);
}
int main()
{
#define sf 99;
f();
printf("%d",sf);
}
#include<stdio.h>
void f()
{
#define sf 100
printf("%d",sf);
}
int main()
{
#define sf 99;
f();
printf("%d",sf);
}A. error
B. 100
C. 99
D. 10099
Answer: Option A

Join The Discussion