ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
what is disadvantage of pointer in C
 Question Submitted By :: Patil.vishalkumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is disadvantage of pointer in C
Answer
# 1
CONFUSION
CRASHING
 
Is This Answer Correct ?    9 Yes 1 No
Poorna Chandar Rao.yerrabothu
 
  Re: what is disadvantage of pointer in C
Answer
# 2
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 ?    6 Yes 1 No
Ravi Joshi
 
 
 
  Re: what is disadvantage of pointer in C
Answer
# 3
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 ?    2 Yes 1 No
Myluvdeepu
 
  Re: what is disadvantage of pointer in C
Answer
# 4
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 ?    1 Yes 0 No
Sourisengupta
 
  Re: what is disadvantage of pointer in C
Answer
# 5
as per Security point of view pointer is not safe. A lot of
threads are exist like buffer overflow problems.
 
Is This Answer Correct ?    1 Yes 0 No
Adesh
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Is main() function predfined or userdefined?  7
for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????  6
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? Wipro2
YBJBU6  1
int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ? Mascot9
How does free() know how many bytes to free?  5
In scanf h is used for BFL2
While(1) { } when this loop get terminate is it a infinite loop?  4
How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs. NetApp12
15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?  1
code for copying two strings with out strcpy() function.  5
difference between function & structure Verizon5
c program to add and delete an element from circular queue using array  1
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code? Ramco4
What does the message "warning: macro replacement within a string literal" mean?  1
34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?  2
HOW TO HANDLE EXCEPTIONS IN C  5
what is the associativity of bitwise OR operator?  1
write a C code To reverse a linked list Motorola2
what does data structure mean?  7
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com