04 | variable lvalue and rvalue in C Programming Language Tutorials

Publicado el: 27 mayo 2017
en el canal de: Coding Funda
531
13

This tutorial is for clearing the variable defination,declaration , lvalue , rvalue concept in c language. Also some important interview questions.

Answer 1: Option B

Explanation:

extern int fun(); declaration in C is to indicate the existence of a global function and it is defined externally to the current module or in another file.

int fun(); declaration in C is to indicate the existence of a function inside the current module or in the same file.

Answer 2: Option A

Explanation:

Declaring is the way a programmer tells the compiler to expect a particular type, be it a variable, class/struct/union type, a function type (prototype) or a particular object instance. (ie. extern int i)

Declaration never reserves any space for the variable or instance in the program's memory; it simply a "hint" to the compiler that a use of the variable or instance is expected in the program. This hinting is technically called "forward reference".

Answer 3: Option C

Explanation:


extern int x; - is an external variable declaration.

double pow(double, double); - is a function prototype declaration.

Therefore, 1 and 3 are declarations. 2 is definition.
Answer 4: Option A

Explanation:

- During declaration we tell the datatype of the Variable.

- During definition the value is initialized.

~-~~-~~~-~~-~
Please watch: "(5) 5 | Auto, Register, Static, Extern storage classes in C Programming Language Tutorials "
   • 5 | Auto, Register, Static, Extern st...  
~-~~-~~~-~~-~


En esta página del sitio puede ver el video en línea 04 | variable lvalue and rvalue in C Programming Language Tutorials de Duración hora minuto segunda en buena calidad , que subió el usuario Coding Funda 27 mayo 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 531 veces y le gustó 13 a los espectadores. Disfruta viendo!