Is there any restriction in how many arguments printf or
scanf function can take?
in which file in my c++ compiler i can see the code for
implementation of these two functions??
Answers were Sorted based on User's Feedback
Answer / uma sankar pradhan
printf() and scanf() are variable argument list functions
They can take any number of values as their arguments
The prototypes for these functions are found in the header
file "stdio.h"
| Is This Answer Correct ? | 20 Yes | 2 No |
Answer / some
There is limitation as the function call stack is limited but both functions have variable number of arguments.
The functions are defined in <cstdio>
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / venkatesh
printf() and scanf() can take any number of arguments.
the prototypes of these functiona are stdio.h and conio.h
| Is This Answer Correct ? | 8 Yes | 7 No |
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Explain how can I right-justify a string?
Tell about strtok & strstr functions
2 Answers HCL, iFlex, Motorola,
typedef struct { int i:8; char c:9; float f:20; }st_temp; int getdata(st_temp *stptr) { stptr->i = 99; return stptr->i; } main() { st_temp local; int i; local.c = 'v'; local.i = 9; local.f = 23.65; printf(" %d %c %f",local.i,local.c,local.f); i = getdata(&local); printf("\n %d",i); getch(); } why there there is an error during compiling the above program?
What are pointers? Why are they used?
why we are using semicolon at the end of printh statment
how can i sort numbers from ascending order and descending order using turbo c..
what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
print 1-50 with two loop & two print Statement
What is the advantage of an array over individual variables?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What is difference between array and pointer in c?