#include<stdio.h>
int main()
{
printf(“I am learning the %c programming language \n”, ‘C’);
printf(“I will just complete Chapter %d \n”,‘10’);
printf(“However only %f percent is ready to move on\n”,‘99.9’);
return 0;
}
OUTPUT:
I am learning the C programming language
I will just complete Chapter 12592
However only 0.000000 percent is ready to move on
note:
I was supposed to get 10 instead of 12592
Also not printing 99.9 percent, getting zeroes
Compiler: gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix