Whether there can be main inside another main?If so how does
it work?

Answer Posted / gprabha

#include<stdio.h>
void main()
{
printf("main()");
main();
getch();
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is a structure member accessed?

585


write a program to print largest number of each row of a 2D array

1872


What is malloc and calloc?

575


can we change the default calling convention in c if yes than how.........?

2035


How can I pad a string to a known length?

612






Hi can anyone tell what is a start up code?

1616


Explain built-in function?

593


List the variables are used for writing doubly linked list program.

1623


Why we use stdio h in c?

584


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

3691


What is the size of array float a(10)?

657


Is array a primitive data type in c?

579


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1492


Is javascript based on c?

595


Is c is a procedural language?

601