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
Is the exit() function same as the return statement? Explain.
How do you declare a variable that will hold string values?
What is the purpose of main( ) in c language?
p*=(++q)++*--p when p=q=1 while(q<=6)
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
Describe the order of precedence with regards to operators in C.
Linked lists -- can you tell me how to check whether a linked list is circular?
What does stand for?
Why does notstrcat(string, "!");Work?
What is structure padding in c?
How do you determine whether to use a stream function or a low-level function?
When should a far pointer be used?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What are operators in c?
Is c pass by value or reference?