Forums Programming Assignment Help What will be output when you will execute following c code?

This topic contains 1 reply, has 2 voices, and was last updated by  ahprofessional 6 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15166

    Aakanksha
    Participant

    What will be output when you will execute following c code?

    #include<stdio.h>
    int main(){
    double num=5.2;
    int var=5;
    printf(“%d\t”,sizeof(!num));
    printf(“%d\t”,sizeof(var=15/2));
    printf(“%d”,var);
    return 0;
    }

    (A)    4 2 7
    (B)    4 4 5
    (C)    2 2 5
    (D)    2 4 7
    (E)    8 2 7

    #15175

    ahprofessional
    Participant

    answer:-

    (C)    2 2 5

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.