Ask Question - Get Answer

1 Ans Various Types of errors in C programming

Asked by AL MaMun (4 Golds) Monday, 06 Sep 2021, 08:19 PM at (Education Engineering)

Please log in to answer, like and save
0
Save 0

<<< Previous
Log in to Answer Next >>>

Answer(s):

Various Types of Error in C programming:

1. Syntax error
2. Run-time error
3. Linker error
4. Logical error
5. Semantics error


#include<stdio.h>
int main()
{
printf("Hello")
return 0;
}

#include<stdio.h>
int main()
{
int a=10;
printf("%d",a/0);
return 0;
}

#include<stdio.h>
int Main()
{
int a=4/2;
printf("a=%d",a);
return 0;
}

#include<stdio.h>
int main()
{
int sum=0, i, k=1;
for(i=1;i<=10;i++);
{
sum=sum+k;
k++;
}
printf{"sum=%d",sum);
return 0;
}

#include<stdio.h>
int main()
{
int a=1, b=2, c=3;
a+b=c;
return 0;
}

Answered by AL MaMun (4 Golds) Monday, 06 Sep 2021, 08:22 PM

Please log in to Upvote, Downvote and Report
           

Related Q/A:

1 Ans What is a computer? Write the basic parts of a computer.

4 Ans Which is the most famous web developing site online?

1 Ans How to find information from IP address?

1 Ans Write about Operating system?

2 Ans Which Info will we get from IP address? Briefly explain

2 Ans SRS meaning?

1 Ans Understanding Huffman Coding - the easiest way to construct Huffman tree

1 Ans What is booting? Write the steps of booting.

1 Ans Classification of Computers

1 Ans What is virtual memory?