pleaaeaeaeaese quick before wednesday
what does"%c" mean in c and how can i convert it to c++????
what does"%c" mean in c and how can i convert it to c++????
int main(int argc, char **argp) { char c = 'A'; /* Assign c the value of the character constant 'A' */ /* Print c as a character and as a number */ printf("'%c' = %d\n", c, c); return 0; }
#include "iostream" using namespace std; int main(int argc, char **argp) { char c = 'A'; /* Assign c the value of the character constant 'A' */ cout << "'" << c << "' = " << (int)c << endl; return 0; }
char c = 'A' char message[20]; sprintf_s(message, 20, "c char: %c\nc int: %d", c, c); cout << message << endl;
Comment