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;
}
#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 ::
No Discussion on this question yet!