What is variable declaration and definition in c?



What is variable declaration and definition in c?..

Answer / Ajay Chaturtvedi

Variable declaration in C announces the name, type, and other properties of a variable. Variable definition includes both declaration and initialization with some initial value. For example: `int x;` declares x as an integer variable, while `int x = 5;` defines and initializes x to 5.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what are the general concepts of c and c++

2 Answers  


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1 Answers  


Why is c so popular?

1 Answers  


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1 Answers   Expedia,


Explain what will the preprocessor do for a program?

1 Answers  


which types of data structure will i use to convert infix to post fix???

5 Answers   IIT,


a program that can input number of records and can view it again the record

1 Answers   Accenture,


How can I discover how many arguments a function was actually called with?

1 Answers  


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

1 Answers  


What is sorting in c plus plus?

1 Answers  


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

1 Answers  


Can u please send me the exam pattern and also Previous papers to javed123go@gmail.com

0 Answers  


Categories