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

Answer Posted / valli

in linux while compilation we u mention -nostartfiles it
will work
#include<stdio.h>
abc()
{
printf("hello");
}

Is This Answer Correct ?    9 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

program to convert a integer to string in c language'

1984


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2517


Ow can I insert or delete a line (or record) in the middle of a file?

576


Difference between pass by reference and pass by value?

658


What is a const pointer?

638






How are 16- and 32-bit numbers stored?

725


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1893


Why isnt there a numbered, multi-level break statement to break out

587


What is your stream meaning?

606


Explain how do you sort filenames in a directory?

608


What is chain pointer in c?

603


How can I make it pause before closing the program output window?

581


What is strcpy() function?

657


If I have a char * variable pointing to the name of a function ..

652


What is the difference between malloc() and calloc() function in c language?

604