Monday, 30 September 2013

Ternary operator in C – stackoverflow.com

Ternary operator in C – stackoverflow.com

Why this program is giving unexpected numbers(ex: 2040866504, -786655336)?
#include <stdio.h> int main() { int test = 0; float fvalue = 3.111f;
printf("%d", test? fvalue : 0); …

No comments:

Post a Comment