Why does this code crash?



Why does this code crash?..

Answer / Navraj Singh

Without the actual code, it is impossible to determine the exact reason for the crash. However, common causes of crashes in C include uninitialized pointers, null pointer dereferences, memory leaks or buffer overflows, and failure to check for errors after function calls.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What are qualifiers in c?

1 Answers  


Write a program that receives as input a number omaadel-n-print, four digits.

0 Answers  


What are file streams?

1 Answers  


6)What would be the output? main() { int u=1,v=3; pf("%d%d",u,v); funct1(&u,&v); pf("%d%d\n",u,v); } void funct1(int *pu, int *pv) { *pu=0; *pv=0; return; } a)1 3 1 3 b)1 3 1 1 c)1 3 0 0 d)1 1 1 1 e) 3 1 3 1

4 Answers  


Multiply an Integer Number by 2 Without Using Multiplication Operator

1 Answers  


main is a predefined or user define function if user defined why? if predefined whay?

12 Answers   TCS,


Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.

1 Answers   TCS,


how can you print&scan anything using just one character? :) HINT: printf,scanf similer

2 Answers  


What is the difference between CV and Resume ?

2 Answers  


Is c easier than java?

1 Answers  


Explain what is gets() function?

1 Answers  


1 1 2 1 2 3 1 2 3 4 1 2 3 1 2 1 generate this output using for loop

2 Answers  


Categories