Message from C, C++ discussions

December 2019

— Https://


Char n[10];
Printf("enter name") ;
Scanf("℅S", n) ;
Printf("%s", n) ;

n have address of n[] so scanf will take input as usual but why printf is taking address and printing name though?

— Thats how %s works

— /report suspicious

— Reported Ak to admins.​​​​​​​​​​​​​​​

— Hi
As we know log(x) has value only at x>0. Is there any way to set log(x) at -infinity < x < infinity in c++?

Message permanent page

— Because I want to plot the range value of log(x) for example from -10 to +10

— Who told you log(x) x had value > 0?

— Log0 = 1

— X = 0

— What about-infinity

— Infinity is not a real number