what is disadvantage of pointer in C
Answers were Sorted based on User's Feedback
Answer / ravi joshi
Pointers is a wonderful concept if used carefully and in a
fully understood manner. Only drawback with pointers is
using multiple levels of dereferencing which leads to
confusion and most of the time data corruption and program
crash. Most dangerous thing with pointers I have experienced
is typecasting !!!
Is This Answer Correct ? | 36 Yes | 8 No |
Answer / ravi kira
one of the main disadvantage is we can access data out of
limits and another one is if any mistake done in freeing the
memory using pointers the entire system will crash
Is This Answer Correct ? | 12 Yes | 2 No |
Answer / myluvdeepu
i think that security is main concern with the pointers.
because we can access any memory location with this.
every address is accessible with the pointers.
Is This Answer Correct ? | 18 Yes | 9 No |
Answer / 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 |
Answer / abdul rahman
One of the disadvantage is while we are deallocating the
memory by using the free function, by mistake if we use a
pointer for which we do not allocate memory, may lead to
complete system down. This is because that unknown pointer
may point to the memory in which system files are stored.
Is This Answer Correct ? | 9 Yes | 2 No |
Answer / vinothrajan.s
main disadvantage is security. how means using pointer
concept we can change the value which is assigned to
it.like this we lose our data.
Is This Answer Correct ? | 8 Yes | 4 No |
Answer / ami
normally pointer workes with address and if we can find the
address of any locatiion of hardware any one can easly
currpt the data that is the bigest problem with pointer but
still the os is written in c language that is not understand
by me
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / saroun
i think that disadvantage is security. how means using
pointer concept we can change the value which is assigned to
it.like this we lose our data.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / yogesh rajoriya
normally pointer workes with address and if we can find the
address of any locatiion of hardware any one can easly
currpt the data that is the bigest problem with pointer but
still the os is written in c language that is not understand
by me
Is This Answer Correct ? | 0 Yes | 0 No |
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
a=5 a=a++/++a
how can i calculate mean,median,mode by using c program
What are the characteristics of arrays in c?
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.
What are the different types of objects used in c?
Explain the process of converting a Tree into a Binary Tree.
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
How can I find out how much memory is available?
main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }
What are Storage Classes in C ?
32 Answers CTS, HP, IBM, Maharaja Whiteline, Tamil Nadu Open University TNOU, TATA, TCS, Wipro,