+ 4

Argument

Int x=3; Printf("%d",x); can we called this as a " passing argument " ? 🤔

25th Sep 2020, 2:29 PM
Nipuna Bhanuka Hettiwatta
Nipuna Bhanuka Hettiwatta - avatar
4 Respuestas
+ 5
Sadman Sakib is there a difference between built in function and user defined function when arguments are passed to any of them? I thought printf is just like any function that takes arguments (a format specificier and a value)
25th Sep 2020, 2:41 PM
Abhay
Abhay - avatar
+ 4
Sadman Sakib As u said , Arguments are for functions . So , printf being a function it can also take arguments🤔. Yes , it is passing of arguments. Why not !? 🙄 Literally this is becoming an "Argument" .😹😹 Have to say ... I was attracted to this question , because of the keyword "Argument" 😹
25th Sep 2020, 2:38 PM
Akash Kumar S
Akash Kumar S - avatar
+ 4
printf() is a function defined inside standard input output library or the stdio.h header. And yes you can call that as an argument which is formatted according to how user wants it to be printed.
25th Sep 2020, 2:38 PM
Avinesh
Avinesh - avatar
+ 2
Nipuna Bhanuka Hettiwatta Yes, these arguments can either be values in their own right as, int x, or they can be pointers to areas of memory that contain the data being passed. int x stdin in printf('%d',x) is a function to stdout 3
25th Sep 2020, 2:51 PM
BroFar
BroFar - avatar