why to assign a pointer to null sometimes??how can a pointer
we declare get assigned with a garbage value by default???


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

Post New Answer

More C Interview Questions

compute the nth mumber in the fibonacci sequence?

10 Answers   Canon, HPL, Satyam, TCS,


Explain the use of function toupper() with and example code?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL

0 Answers  


consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value

4 Answers   TCS,


What is pointer and structure in c?

0 Answers  






main() { int i; printf("%d", &i)+1; scanf("%d", i)-1; }

1 Answers  


#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }

1 Answers   Vector India,


what is the output of printf("%d",(scanf("%d",10));

10 Answers  


Why should I use standard library functions instead of writing my own?

0 Answers  


what is const volatile?

2 Answers  


What is that continue statement??

4 Answers  


What are the advantages of c language?

0 Answers  


Categories