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 Load a locale file into the THTML component ?
How to Modify application server SQL from the client?
Does Delphi have an equivalent to the Visual Basic SendKeys function?
How to Prevent changing pages in a page control?
How to detect the CPU type of the computer the application is running on?
How to Get the current line number of a TMemo?
How to use far pointers?
Why do I get compile errors accessing the Sender object in events?
How to Change the location of the object repository ?
How to retrieve a list of assigned properties ?
How to use the InterBase API security functions to add, modify and delete users?
How to Display a bitmap on the client area of an MDI parent form?
How to Select a cell in a DBGrid ?
How to Change the font in a hint window ?
How to Disable a radio button in a TRadioGroup?