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

Does c have circular shift operators?

1202


Where static variables are stored in c?

1064


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5910


c program to compute AREA under integral

2358


How can a program be made to print the name of a source file where an error occurs?

1186


What does *p++ do?

983


Difference between pass by reference and pass by value?

1111


What is void main () in c?

1160


How do we make a global variable accessible across files? Explain the extern keyword?

1846


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1343


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1031


What is the value of c?

1026


Explain high-order bytes.

1076


Why is it usually a bad idea to use gets()? Suggest a workaround.

1720


Why does notstrcat(string, "!");Work?

1101