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 are the different types of errors?
Can we assign integer value to char in c?
What is the modulus operator?
how to introdu5ce my self in serco
What is bubble sort in c?
Explain what are the different file extensions involved when programming in c?
How can my program discover the complete pathname to the executable from which it was invoked?
What's the total generic pointer type?
Are local variables initialized to zero by default in c?
Explain output of printf("Hello World"-'A'+'B'); ?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
What is keyword with example?
How to create struct variables?
Is this program statement valid? INT = 10.50;
Is malloc memset faster than calloc?