Message from C, C++ talks

July 2019

— And I found nothing serious about this question and how to use the IMAP and/or POP3 systems to receive mails...

Message permanent page

— #include<studio.h>
int main(){
float a,b;
b=a+6.5;
a=2.3;
printf("a=%f b=%f",a,b);
return 0;
}

Hey. I need a help with above question. Here b's definition is containing a , a being defined after b. On compiling result getting printed is
a=2.3 b=6.5;
Can anyone tell me why is this output getting generated. According to me , error should be there

Message permanent page

— A is defined after b but it is decladed before

— So, it exists and it is valid to use it

— 

Just, do not rely on it being 0. Its value is undefined and in your case it is 0 but it is not guaranteed

— There is no header studio.h it's stdio.h (standard I/O)

— You mean a can take any value in this case ??

— Also yes a can be anything if you don't initialize it

— Sorry. Ignore that typing mistake please .

— <source>:5:4: warning: 'a' is used uninitialized in this function [-Wuninitialized]

— This is the warning you get if you compile with the right flags

— Yes

— This or a similar one

— But I am not getting any warning either

— No error ,no warning , output is getting generated smoothy and getting printed