why does the execution of a c++ program start with main()???
Answers were Sorted based on User's Feedback
Answer / anupam
All the ans given above are right. But I think the main
funciton is a userdefined function whose name is fix known
by the compiler. When compiler star compiling the program
then it first read the address from the main function
adddress. So we can say that it is the starting point of
every program from which it execute.
Is This Answer Correct ? | 4 Yes | 7 No |
5. Write c++ function that would intake a string and return the number of occurrences of a given character in that sring Ex:- if the word is “Colombo” and count the occurrences of the letter “o” the function would return 3
What is stl stand for?
Can we use stl in coding interviews?
What is Object Oriental Progam
if x<>=z then statement end what is the cyclomatic complexity
What is Template Specialization?
What is stl in c++ with example?
why we are using the fork command?.. how it works?
Assume I have a linked list contains all of the alphabets from "A" to "Z?" I want to find the letter "Q" in the list, how does you perform the search to find the "Q?"
If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2. please answer my question ....
What are stl algorithms?
I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?