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 Write about Operating system?

1 Ans Why Dynamic RAM (DRAM) needs to be refreshed?

1 Ans What is a Firmware?

1 Ans What is the easiest way to learn coding?

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

1 Ans What is BIOS in a computer system ?

1 Ans MS Word all Keyboard shortcuts Read and share now

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

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

1 Ans What is the goal of SRS communication tool?