Placeholders for variables | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Placeholders for variables

Are placeholders used for all variable types or only for string?

15th Jun 2016, 6:40 AM
Vitaly Odoviychuk
Vitaly  Odoviychuk - avatar
3 Answers
0
a placeholder can be used for all variable types. Don't know how to word it in C# as I'm a java learner, but basically int example; example=42; should work, replacing int with correct syntax.
24th Jun 2016, 3:54 AM
Bobby Turnip (Scye)
Bobby Turnip (Scye) - avatar
0
string example; is correct
8th Sep 2016, 9:08 PM
Farshad Assarpour
Farshad Assarpour - avatar
- 1
string I think
17th Jun 2016, 10:29 AM
sergio
sergio - avatar