What are dangling pointers in c?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

give an example of type casting by a simple c program

2 Answers   TCS,


1.Why do you call C is middle level language? 2.Why do you call C is userfriendly language.

2 Answers  


What is encapsulation?

2 Answers  


what is void pointer?

2 Answers  


What is a structure member in c?

0 Answers  






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?

0 Answers  


struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(“%d”,s.x); }

2 Answers   Vector,


main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }

8 Answers   Vector,


what does keyword ‘extern’ mean in a function declaration?

1 Answers   Emerson,


What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these

3 Answers   IBM,


Eight queens puzzle

0 Answers  


how do you redirect stdout value from a program to a file?

1 Answers  


Categories