Output problem: #include<stdio.h> int main(){ float p=10.5; int a=5*p +5.0; printf("%d", a); return 0; }

Output problem:

#include<stdio.h>
int main(){
    float p=10.5;
    int a=5*p +5.0;
    printf("%d", a);
    return 0;
}

From the BREB Assistant Programmer February 2023 – Written exam, question 6 of 7.

More from this paper