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 kind of structure is a house?

803


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1509


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

1387


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

9960


What is the purpose of void pointer?

826


How do you view the path?

923


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2983


What are the complete rules for header file searching?

883


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

3981


Explain what is dynamic data structure?

918


What are derived data types in c?

843


Explain indirection?

901


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2679


What is the use of in c?

784


What is call by reference in functions?

932