answersLogoWhite

0

You might be wrong: printf and scanf are usable in C++ just as in C. With format specifiers.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What are Format specifiers in C language?

Format specifier is a sequence passed the as the formatting data as by argument


What are the different types of format specifiers in c?

format specifier also called as control specifier or variable formatters. format string also called arguments.


Explain the different access storage specifiers available in c?

The storage class specifiers in C and C++ are:autoexternmutableregisterstatictypedefA storage class specifier is used to refine the declaration of a variable, a function, and parameters


When dealing with very small of large number what step would you take to improve the accuracy of the calculation?

take care of the data types of variables declared and format specifiers


What is a format specifier?

There are many types of format specifier. Exp:%d (To show the integer) %c(To show the character) %f(Float are digits with decimal points to use it to show them) %s(String to show the string)


What do the initials CBF and CPP stand for?

CPP


When dealing with very small or very large numbers what steps would you take to improve the accuracy of the calculations?

take care of the data types of variables declared and format specifiers


When was CPP Group created?

CPP Group was created in 1980.


What are the access specifiers in c?

Satya


How do printf's format specifiers e and f differ in their treatment of floating-point numbers?

%e expects a corresponding argument of type double; %f expects a corresponding argument of type float.


Why format specifier is not necessary in language C plus plus?

Format specifiers are not necessary because we can use the much more flexible insertion operator to insert formatted text in an output stream, or the extraction operator to extract formatted data from an input stream. Format specifiers are simply far too low-level and can only handle built-in data types such as strings, integrals and floats, they cannot handle more complex data types such as classes and data structures and we cannot create new specifiers to cater for them. But in C++ we can simply overload the insertion and extraction operators to cater for any data type we wish, thus providing a consistent means of inserting any object into an input stream or extracting it from an output stream.


Why not you simply put the decimal integer into the original string as compared to the format specifier?

You can certainly do that ... printf ("This is a number: 12345\n"); ... but that does not have the same value as placing the value in a variable and converting the variable into a string ... int i = 12345; printf ("This is a number: %d\n", i); That's the whole point of format specifiers - to initiate a conversion from one place to another.