Solution for Exercise 6-17
ex0617
#include <stdio.h> int main() { const int a = 5; const int b = 7; int c; c = a + b; printf("Variable c=%f\n",c); return(0); }
Output
Variable c=12
Notes
* It's possible to construct the constants' declartion on a single line like this:
const int a = 5, b = 7;
Copyright © 1997-2024 by QPBC.
All rights reserved