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:

2 Ans How to add or remove www from a domain URL?

1 Ans Armstrong Number - Palindrome Number - Fibonacci Number - Perfect Number definition example

2 Ans SRS meaning?

1 Ans Various Types of errors in C programming

1 Ans Classification of Computers

1 Ans What is the easiest way to learn coding?

1 Ans How to install graphics.h in codeblocks - learn easily

1 Ans MS Word all Keyboard shortcuts Read and share now

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

1 Ans Learn all Hyper Text Markup language - HTML tags