What will be the output/error?
int main()
Int i=5;
char c='c';
int sum=in+c;
printf("%d",sum);
return 0;
Answers
Answered by
1
Error is the answer
Answered by
0
First of all, I would arrange the given code into a proper indentation:
int main()
Int i=5;
char c='c';
int sum=in+c;
printf("%d",sum);
return
The code is full of errors. The first syntax error that will be reported during the compile time is the lack of curly braces({}) around the main() function block. In C programming language, it is necessary to define a block of a method or loop by the use of curly braces. So, this code will cause a compile time error.
Similar questions
Biology,
7 months ago
History,
7 months ago
Computer Science,
7 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Economy,
1 year ago