Computer Science, asked by TbiaSamishta, 1 year ago

Check, what will be printed in the following below given program:
#include
main()
{ int rate, time, dist, junk;
rate=7, time=3;
junk=rate+time;
dist=rate*time;
printf("%d %d %d %d\n'' rate,
time, junk
}

Answers

Answered by Secondman
0

"The given code has a couple of syntax errors which will be shown during the process of compilation.

First of all, no header file has been specified in the #include statement.

Secondly, the main() function lacks a return type.

Thirdly, the printf statement has unclosed parentheses.

These errors need to be fixed in order to execute the program successfully.

Img 49_11"

Attachments:
Similar questions