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 Creat a flashing icon ?
How to generate steps to reproduce your issue for Borland Developer Support?
'Memo too large' error with MSSQL . What does this error indicates?
How to Pass a function to a procedure or vice versa?
Explain the methods findfirst, findnext and findclose?
Why won't the virtual key codes work in program?
How to Change the font in a hint window ?
How to Check available disk space on large drives?
Explain the MasterSource/MasterFields behavior?
How to Change the default width/height of the editor?
What is "Error 113" during installation?
How to Select an item in a TListView when the checkbox is checked ?
Where is TReport in Delphi 6?
How to Print in Delphi without using the TPrinter Unit ?
How to Use FindFirst to search for files?