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 disadvantage of pointer in C

Answer Posted / sourisengupta

The only drawback of pointer in C maybe that if used
carelessly, you can access and overwrite some critical
memory. For Eg: if you declare an array of 5 ints, arr[5].
and if you try to write on arr[5], you will end up writing
outside the array, and eventually corrupt some memory
location. So data security is lost while handling pointers

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you initialize pointer variables?

1031


What are the various types of control structures in programming?

1007


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

1064


Compare interpreters and compilers.

1028


Write a program to check palindrome number in c programming?

963


Do you know the difference between exit() and _exit() function in c?

1015


Why can arithmetic operations not be performed on void pointers?

982


What are identifiers in c?

1145


What are the ways to a null pointer can use in c programming language?

1076


What tq means in chat?

1063


What does void main () mean?

1179


What are linker error?

1037


What is static volatile in c?

976


What is main () in c language?

1078


how logic is used

1917