[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Control Instructions - Discussion

Home > C Programming > Control Instructions > MCQs Questions Discussion

17 / 33

Point out the error in the program

#include<stdio.h>
int f(int a){
    a > 20? return(10): return(20);
}
int main(){
    int f(int);
    int b;
    b = f(20);
    printf("%d\n",B);
    return 0;
}

AError: Prototype declaration

BNo error

CError: return statement cannot be used with conditional operators

DNone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Wipro

Post Your Answer Here:     

No Discussion on this question yet!