C Language Video

Back - C Language Notes By Vivek Sir email: vivekdubey22@gmail.com (w) 9826424484

What are arguments and parameters?

·      A parameter is a variable in a method definition.

·      When a method is called, the arguments are the data, you pass into the method's parameters.

·      Parameter is variable in the declaration of function.

·      Argument is the actual value of this variable that gets passed to function.

What is the difference between actual parameter and formal parameter?

Actual vs Formal Parameters

 

The Actual parameters are the values that are passed to the function when it is invoked.

The Formal Parameters are the variables defined by the function that receives values when the function is called.

 Related Function

 

The actual parameters are passed by the calling function.

The formal parameters are in the called function.

Data Types

 

In actual parameters, there is no mentioning of data types. Only the value is mentioned.

In formal parameters, the data types of the receiving values should be included.

 

What is difference between function declaration (function Prototype) and function definition?

The main difference between Function Declaration and Function Definition in C Programming is that -

·      Function declaration indicates

o  what the function is and

·      Function Definition indicates

o   what the function does.

 

What is difference between local and global variable in C?

·         Global variables are declared outside any function, and they can be accessed (used) on any function in the program.

·         Local variables are declared inside a function, and can be used only inside that function.

·         It is possible to have local variables with the same name in different functions.

C Language Video

Back - C Language Notes By Vivek Sir email: vivekdubey22@gmail.com (w) 9826424484