Computer Science, asked by shilpeechoudhary6, 7 months ago

find out the errors and re-write the program again without errors

#include <iostream.h>;
void main ( )
{
cout<<"welcome to c++";​

Answers

Answered by subgb98
0

Answer:

without error. if you run in turbo c++ compiler

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

cout<<"welcome to c++";

getch();

}

Answered by anindyaadhikari13
1

Question:-

Find the errors in the following code.

Answer:-

Given code,

#include <iostream.h>

void main ( )

{

cout<<"welcome to c++";

After correction,the code will be,

#include <iostream.h>

#include <conio.h>

void main ( )

{

clrscr(); //clear screen.

cout<<"welcome to c++";

getch();

}

Similar questions