2080 3

Object Oriented Programming208010 marksFunctions

When inline functions may not work? Define and write syntax for default arguments. Write a program to display N number of characters by using default arguments for both parameters. Assume that the function takes two arguments, one character to be printed and other how many times the character to be

When inline functions may not work? Define and write syntax for default arguments. Write a program to display N number of characters by using default arguments for both parameters. Assume that the function takes two arguments, one character to be printed and other how many times the character to be printed respectively.[10]

--- The compiler may ignore the inline request and treat the function as a normal function in the following situations: 1. Function contains loops - If the inline function contains looping statements such as for, while, or do-while, the compiler will not inline it. 2. Function contains static var...

Up nextWhat do you mean by stream? Explain different stream class for file input/output.