I see %f is for float, %@ is for string. Is %d for anything? Which % is for double? Which % is for BOOL?
What is the different between double and float? When I put
float flow=-8.1234567890123456789; //4 bytes floating point double dobble=-8.1234567890123456789; //8 bytes floating point NSLog(@"flow is %f and dobble is %f", flow, dobble);
The output is the same for flow and dobble.
I can write "int a, b;" to declare two ints. Why can't I write "NSString* personOne, personTwo;"?
How do I declare a bitwise variable and manipulate it with &=, <<, ^?
MareoRaft
0
Junior Poster in Training
Recommended Answers
All 3 Replies
MareoRaft
0
Junior Poster in Training
gusano79
247
Posting Shark
MareoRaft
commented:
if %d is for integers, what is %i for?
+3
geojia
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.