how many error occurs in C language ?

Answer Posted / jayasrinivas.donavalli

How can we say how many errors in C language,but Usually
Every Language has some errors like Syntaical and
Symantical Errors
Syntatical Errors are the error in the syntax like int x.
but here instead of semi colon we palce dot that is the
syntatical error.
Symantical Errors: The errors are in the symantics like If
is the keyword instead of that we write ef
then the meaning is changed that is symantical errors.
The above two errors are Compile time errors and we have
some runtime errors.They are due to some infinite loops
garbage collection or memory shortage or wrong Inputs

Is This Answer Correct ?    26 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does struct work in c?

600


Describe static function with its usage?

602


What does printf does?

731


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

736


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2671






Is calloc better than malloc?

563


Wt are the Buses in C Language

2742


What is the 'named constructor idiom'?

629


What is #include stdio h and #include conio h?

591


I need testPalindrome and removeSpace #include #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, ©Count); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

2201


Differentiate between the = symbol and == symbol?

700


What is double pointer in c?

578


How can I convert a number to a string?

600


What are the types of macro formats?

596


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

800