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 difference between declaring the pointer as int and
char in c language?

Answer Posted / k vishwanath pillay

While declaring Pointer for an Integer value, we assign a
default size i.e 4 byte of memory for the Integer variable.
But in the case of char by default it assigns 1 byte of
memory for that character variable.

The type of declaration is the same for both.

Char a[5], *p; // for char variable
int *i; // for Int variable

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1918


What is a built-in function in C?

1525


Which is best linux os?

982


What is the use of ?: Operator?

1086


What is the difference between constant pointer and constant variable?

1176


What is double pointer?

961


Can a void pointer point to a function?

974


Explain the use of 'auto' keyword in c programming?

1077


What is c basic?

1134


What are the advantages and disadvantages of pointers?

1022


Can a program have two main functions?

1074


What are pointers in C? Give an example where to illustrate their significance.

1174


Can stdout be forced to print somewhere other than the screen?

1020


Do pointers store the address of value or the actual value of a variable?

1031


What is a void pointer? When is a void pointer used?

1032