Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 Is there any difference in the #define and typedef in the following code? typedef char string_t; #define string_d char ; string_t s1, s2; string_d s3, s4; ?->(Show Answer!)
1. Is there any difference in the #define and typedef in the following code? typedef char string_t; #define string_d char ; string_t s1, s2; string_d s3, s4;
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.03 pm
In these declarations, s1, s2 and s3 are all treated as char*, but s4 is treated as a char, which is probably not the intention.