Computer Science, asked by Oindrili, 1 year ago

Q1. Find all syntax error in the following given code and rewrite the correct code:

@include<<iostream.u>

#include<hello.h>

void Main()

{

Clrscr();

Int a=7;

char section = F;

cout>>”Hello class”<<a;

cout<<”\nSection: “<<section<<endline;

getch()

}​

Answers

Answered by RasshriVadhwa23
2

Explanation:

hope it helped

plss mark as brainliest!

Attachments:

RasshriVadhwa23: I commit my mistakes,but I tried
sswaraj04: yea ik & it's appreciated
sswaraj04: so i just pointed out the mistakes
RasshriVadhwa23: ohk
RasshriVadhwa23: but F is also a character
sswaraj04: yup section =f won't assign it with 'f' character instead it will assign a random value to it
sswaraj04: and so i wrote too it's not syntax error it's logical error
Oindrili: sorry rasshri I can't mark u brainliest until someone else answers
RasshriVadhwa23: ohk no problem
Oindrili: marked brainliest
Similar questions