0

What does it mean for an argument to be "expected"?

16th Apr 2016, 11:57 PM
Kyle “Kilaya” Robinson
Kyle “Kilaya” Robinson - avatar
2 Answers
0
it means exactly what it says for ex- in a program sometimes a warning is displayed that format '%d' expects arguments of type 'int' but argument 3 has type 'int *' so u need to change it.
17th Apr 2016, 1:19 PM
naina
naina - avatar
0
To answer this from my perspective is this. For example: static void Func() doesn't expect an argument because none are listed. This next example would: static void Func(int x). The int x is an argument or parameter required to access this method. It expects an argument of type int or a whole number essentially. I hope this makes sense.
17th Apr 2016, 6:25 PM
Benjamin McKissick Jr.
Benjamin McKissick Jr.   - avatar