Computer Science, asked by veerak82pcwdyk, 1 year ago

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 HitheshMandrira
1
Error is the answer
Answered by phillipinestest
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