C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
17 / 90
What will be the output of the below C program.
#include<stdio.h>
int main(){
printf("%d","abcde"-"abcde");
return 0;
}
#include<stdio.h>
int main(){
printf("%d","abcde"-"abcde");
return 0;
}
A0
B-1
C1
DGarbage Value
ECompilation error
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
STEP-BY-STEP
The ASCII value of the first string(i.e, abcde) is subtracted from the ASCII value of the second string(i.e, abcde), getting the output as 0.
Read Full Answer
Report Error
Please Login First Click Here
TRICK
Just count ASCII values and minus them, the value will be 0.
Read Full Answer
Report Error
Please Login First Click Here