I know the three main data types in basic C.
Integers, Characters, and Floating Point data.
When I'm specifying the type of data, would "%d" be integer data?
Thanks,
Bud
I know the three main data types in basic C.
Integers, Characters, and Floating Point data.
When I'm specifying the type of data, would "%d" be integer data?
Thanks,
Bud
Yes. %d is integer, %c is character and %f is floating point. There are more, like %x which gives the value in hexadecimal notation and %s can be used for strings.
Thanks man, My book, Absolute Beginner's Guide to C, tells me about it somewhere, I've seen it before. But I was just curious. Thank you again
Bud