can we write a c program with out using main

Answer Posted / kamini

#include<stdio.h>
#include<conio.h>
#define decode(s,t,u,m,p,e,d) m##s##u##t
#define begin decode(a,n,i,m,a,t,e)

void begin()
{
printf(" hello ARUN");
getch();
}

Ans was correct but if the function is declare int dn it has to be return some value so it should be void.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I prevent another program from modifying part of a file that I am modifying?

618


When should you not use a type cast?

661


What is the use of the function in c?

602


What's the difference between constant char *p and char * constant p?

660


Is it possible to pass an entire structure to functions?

563






What does static variable mean in c?

656


Why calloc is better than malloc?

574


Write a program with dynamically allocation of variable.

607


What is a built-in function in C?

799


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

650


Why cant I open a file by its explicit path?

595


Explain what is dynamic data structure?

648


What do you mean by a local block?

632


What is bin sh c?

584


What is pointer and structure in c?

576