Can you think of a way when a program crashed before
reaching main? If yes how?

Answer Posted / sunil

The global variables get initialized by the c startup
functions before the main function is being called.
Hence any error in global variables will cause a crash
before reaching the main.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is calloc in c?

887


What is the correct code to have following output in c using nested for loop?

842


What is the use of static variable in c?

826


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1008


What does 2n 4c mean?

981


What is non linear data structure in c?

779


How do we open a binary file in Read/Write mode in C?

976


Does sprintf put null character?

796


What does the format %10.2 mean when included in a printf statement?

1365


Lists the benefits of c programming language?

823


What is bubble sort in c?

834


Explain how do you determine the length of a string value that was stored in a variable?

918


What is logical error?

860


Why c is called a middle level language?

831


What does typeof return in c?

841