Can you think of a way when a program crashed before
reaching main? If yes how?
Answer Posted / pyari
int foo ()
{
// It comes here before main is invoked
//Hence a crash happening in this function
obviously ,will happen before main is called
// s simple crash :)
swprintf(NULL,L"%s",L"crash");
return 1;
}
int i = foo ();
int _tmain(int argc, _TCHAR* argv[])
{
return ( 0 );
}
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain the difference between malloc() and calloc() in c?
Is it better to use malloc() or calloc()?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
How can I find out how much free space is available on disk?
What is the full form of getch?
What is variable and explain rules to declare variable in c?
What are the two forms of #include directive?
How can variables be characterized?
What is far pointer in c?
Explain how do you view the path?
What do you mean by Recursion Function?
Can we replace the struct function in tree syntax with a union?
What is #include called?
What does it mean when a pointer is used in an if statement?
What is the difference between abs() and fabs() functions?