What IS thé data type of 292bjd | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What IS thé data type of 292bjd

I tried programming and i thought it is either char or string

2nd Apr 2024, 10:45 AM
Raphaël Sparks
Raphaël Sparks - avatar
3 Answers
+ 1
Since 292bjd is a mix of numerics and alphabetics, it must be stored as a string. C does not have a string data type, so use a char array to store it. If you manually define the array size, then bear in mind that C strings require one extra byte to store a terminating null character. Feel free to share your troublesome code. The community is available to help you.
3rd Apr 2024, 12:43 AM
Brian
Brian - avatar
0
Thanks bro you are the best
3rd Apr 2024, 5:30 AM
Raphaël Sparks
Raphaël Sparks - avatar
0
You're welcome! 😎
3rd Apr 2024, 6:18 AM
Brian
Brian - avatar