What output might you expect from the following program, int calculation and printf()? - C Language Basics

C examples for Language Basics:printf

Description

What output might you expect from the following program, int calculation and printf()?

Demo Code

#include <stdio.h> 

int main (void) 
{ 
       int answer, result; 

      answer = 100; //from w  w  w.jav a 2  s .  c om
       result = answer - 10; 
      printf ("The result is %i\n", result + 5); 

       return 0; 
}

Result


Related Tutorials