-->
Showing posts with label Interview Question. Show all posts
Showing posts with label Interview Question. Show all posts

Sunday, December 21, 2014

How many error occurs in C language ?

There are three types of errors that may occur while developing or writing C program. There errors are:

1.Syntax Errors
2.Logical Errors
3. Runtime Errors

Syntax Errors:-
The set of rules (grammatical rules) of a programming language for writing statements of the computer program is known as syntax of the language. The program statements are written strictly according to these rules.

Syntax error occur when syntax of a programming language are not followed in writing the source code. The compiler detects these errors at compiling time of source code. The compiler reports a proper error message about the error.

Tuesday, October 21, 2014

Interview Question

Question 1 :What is the difference between macros and inline functions?

 Ans : 

 Macro- does not involve in compilation if there is any logical error also just replaces the code.

Inline- look like function, but control doesn't goes to function and execute, it simply replaces the code like macro but involves in compilation. 

Question 2:Difference between structure and union? 

Receive Our Quality Tutorials Straight In Your Inbox By Submitting Your Email ID Below...

Your Information Will Never Be Shared.