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

How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1134


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

1161


Is there a way to switch on strings?

1030


What are the application of void data type in c?

1138


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

1042


How can I do graphics in c?

984


What is queue in c?

1038


what do u mean by Direct access files? then can u explain about Direct Access Files?

2034


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

980


What are predefined functions in c?

1024


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3479


Can a pointer be volatile in c?

935


What is the process to create increment and decrement stamen in c?

995


When should the volatile modifier be used?

1111


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1300