Examveda
Examveda

What will be the output of the following C code?
#include<stdio.h>
#define sf 10
main()
{
    if(sf==100)
        printf("good");
    else
    {
        printf("bad");
        sf=100;
    }
    printf("%d",sf);
}

A. 100

B. bad

C. 10

D. error

Answer: Option D


This Question Belongs to C Program >> C Preprocessor

Join The Discussion

Related Questions on C Preprocessor