0

What are the return types available in C?

Other than int,char,float,double and void.

15th Jan 2017, 7:19 AM
Varshini
Varshini - avatar
5 Answers
+ 6
bool, string.
15th Jan 2017, 7:29 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
actually bool is not an actual type in C, but you can include <stdbool.h> apparently to use it and string is just a pointer to the beginning of an array (char*), so it not an actual type, but a char* pointer can be returned tho anyway, here you can find some return types https://msdn.microsoft.com/en-us/library/ckwkyfdb.aspx
15th Jan 2017, 8:30 AM
Burey
Burey - avatar
+ 3
String isn't really a natural type in c though.
15th Jan 2017, 7:31 AM
Dao
Dao - avatar
0
Thank u so much.That link was really helpful.
15th Jan 2017, 3:25 PM
Varshini
Varshini - avatar
0
how to return strings using functions in C language?
15th Jan 2017, 3:26 PM
Varshini
Varshini - avatar