What will be the output of this C program? #include<stdio.h> int main(){ float p=10.5; int a=5*p+5.0; printf("%d\n",a); return 0; }

What will be the output of this C program?

#include<stdio.h>
int main(){
    float p=10.5;
    int a=5*p+5.0;
    printf("%d\n",a);
    return 0;
}
  1. a) 57.500000
  2. b) 57
  3. c) 57.000000
  4. d) The program has errors and will not run.

From the Combined Bank Assistant Programmer (CSE) 2020 – Preliminary (DU) exam, question 20 of 47.

More from this paper