+ 1
In final output how %d is replaced by the second argument?
8 Respuestas
+ 3
Here is an example.
https://code.sololearn.com/c0CN78TBE3Gk/?ref=app
+ 3
Ashi Kumari
Did you look at the code?
I even added a prototype in the comments.
+ 2
Ashi Kumari
You should try using a char array if you do not want to use formating.
also %d does not work for characters. Try %c
+ 1
Please mention 2 arguments in 1 program and then elaborate
+ 1
#include <stdio.h>
int main() {
printf("int: %d \n", sizeof(int));
printf("float: %d \n", sizeof(float));
printf("double: %d \n", sizeof(double));
printf("char: %d \n", sizeof(char));
return 0;
}
+ 1
i want a code like this where the %d could be replaced by the second argument
+ 1
I couldn't understand ur point of view
+ 1
alright thanks