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
What is c programming structure?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
What is pass by value in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What are bitwise shift operators in c programming?
List some basic data types in c?
What are near, far and huge pointers?
Difference between pass by reference and pass by value?
What is sizeof int in c?
What are operators in c?
What is the difference between mpi and openmp?
What are the different types of endless loops?
Is it possible to have a function as a parameter in another function?
What does %d do?