Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between declaration and definition
of a variable or function ?

Answer Posted / ashu_deepu

i will like to add 1 thing abt d variabes.

declaring a variable means
int deepu; //it is declaration

defining means assigning value to the variable.

eg: int deepu=2018; //it is definition

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a house a shell structure?

1118


pierrot's divisor program using c or c++ code

2183


Explain what is a static function?

1062


what is a function method?give example?

2327


How can I get the current date or time of day in a c program?

1183


Why pointers are used in c?

958


What is a memory leak? How to avoid it?

1272


What is the most efficient way to count the number of bits which are set in an integer?

1015


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3262


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6754


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

1077


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

998


What are the preprocessor categories?

1009


what value is returned to operating system after program execution?

2076


Are the variables argc and argv are always local to main?

980