can v write main()
{
main();
}
Is it true?

Answer Posted / sharath

yes it becomes a recursive function
we have to specify any condition using a loop or any decision block so that the loop doesnot call the main() function again.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is this pointer in c plus plus?

590


How can you draw circles in C?

621


Why c is called a mid level programming language?

601


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

723


Explain the bubble sort algorithm.

638






Differentiate between calloc and malloc.

751


which is an algorithm for sorting in a growing Lexicographic order

1394


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

704


What is selection sort in c?

603


What is a keyword?

740


What is the ANSI C Standard?

775


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2679


write a program to concatenation the string using switch case?

1553


What is the full form of getch?

580


What is methods in c?

637