can we write a c program with out using main
Answers were Sorted based on User's Feedback
Answer / durga mahesh
Say Big Nooooooooooooooooo..........
Its never ever possible bcoz when a program is compiled the compiler always looks for the entry of the program initially(this is the first and foremost action performed by compier)
In c,main() is the entry section...exectuion begins only after main is checked....
| Is This Answer Correct ? | 20 Yes | 12 No |
Answer / arun kumar
#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)
int begin()
{
printf(" hello ARUN");
getch();
}
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / 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 |
How do i store a paragraph into a string? for example, if i input a long paragraph, the program will read the words one by one and concatenate them until no word is left.
How do you initialize function pointers? Give an example?
who developed c and why he developed c?
Describe the steps to insert data into a singly linked list.
what is c
What is const keyword in c?
What do the functions atoi(), itoa() and gcvt() do?
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
Explain the process of converting a Tree into a Binary Tree.
How many types of sorting are there in c?
Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }