Answer Posted / naendra allam
Asume abc.c is the program
--------\abc.c\---------
#include <stdio.h>
#include <stdlib.h>
int naren()
{
printf("Hi--- Ther is no main() here.\n");
exit(EXIT_SUCCESS); //Not supposed to use 'return 0;'
}
-----------------------
//compilation with GCC
$gcc -c abc.c
---> which generates abc.o
$ld --dynamic-linker /lib/ld-linux-so.2 -oabc abc.o -enaren
-lc
---> which generates executable 'abc'
$./abc
Hi--- Ther is no main() here.
--->you ran the program.
ALL THE BEST
Narendra Allam
IVTL INFOVIEW
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
How to make your main form fill up the Desk Top space?
How to Get printer capabilities?
How to Add TrueType fonts to windows in code?
I am trying to call from Delphi and it GPFs. Whats up?
How to Insert a file at the cursor ?
How do we get access to a database from Delphi?
How to Create a custom word break procedure?
What is the process of exception handling in delphi?
How to Load a locale file into the THTML component ?
How to Access a grid's column or row by name ?
How to Check drive ready status?
How to Change the display mode settings in code?
How to convert a .dfm file to text and vise versa?
How to use far pointers?
How to Return application's exit code?