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
What is c programing language?
int i=10; printf("%d %d %d", i, i=20, i);
Calculate 1*2*3*____*n using recursive function??
Explain how are portions of a program disabled in demo versions?
What is unary operator?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What is a nested formula?
Explain can you assign a different address to an array tag?
What is the easiest sorting method to use?
what do you mean by inline function in C?
What is the use of a static variable in c?
How can I read and write comma-delimited text?
i have a written test for microland please give me test pattern
Can one function call another?
What is enumerated data type in c?