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

Can the curly brackets { } be used to enclose a single line of code?

701


Explain #pragma statements.

589


Explain what is a pragma?

574


What is #include cctype?

566


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1724






Can you please explain the difference between syntax vs logical error?

674


Why is it important to memset a variable, immediately after allocating memory to it ?

1540


What is #ifdef ? What is its application?

633


Explain the difference between #include "..." And #include <...> In c?

610


Explain spaghetti programming?

670


Explain the difference between malloc() and calloc() in c?

563


What is the method to save data in stack data structure type?

592


What is the difference between #include

and #include “header file”?

538


What is a spanning Tree?

933


What is far pointer in c?

793