Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22016

A couple of complicated exponential operations in C return inf? [duplicate]

$
0
0
#include <stdio.h>#include <math.h>int main(){   printf("Hello World! \n");    double a = 56;    double b = pow(a,a);    double c = pow(b,b);    double d = pow(c,c);    double e = pow(d,d);    printf("%lf\n", e);    return 0;}

when i run it, I am greeted with 'Hello World' and then 'inf'.... The aim is to create a C programme that can crash a computer bypassing OS interventions, if that is at all plausible ?


Viewing all articles
Browse latest Browse all 22016

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>