Is it possible to run a c program without using main?If yes
HOW??

Answer Posted / vrushali

Hi Valli,

I tried the solution provided by you. It doesnot work.

Please chk the compliation procedure.
gcc -g -nostartfiles main.c


I am getting the following:
/usr/bin/ld: warning: cannot find entry symbol _start;
defaulting to 080481a4

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 02d in c?

635


a c code by using memory allocation for add ,multiply of sprase matrixes

2297


Write program to remove duplicate in an array?

596


What is indirection in c?

621


What are the different types of pointers used in c language?

611






How do I determine whether a character is numeric, alphabetic, and so on?

621


Write a program to print "hello world" without using a semicolon?

592


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

649


How do you generate random numbers in C?

653


Who developed c language and when?

578


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

4739


What is masking?

633


How to write a code for reverse of string without using string functions?

1576


What is the advantage of an array over individual variables?

737


What does %d do in c?

539