Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • DOLLECT
  • Others
  • Configuration
  • AI
  • BLOG
  • ABOUT
    • ABOUT
    • Perception Style

Daily Archives: June 20, 2014

How to write a simple C program showing addition ?

$cat add-p1.c #include <stdio.h> #include <stdlib.h> int add (int a,int b) { return a + b; } int main() { int a,b; a =3; b =4; int ret = add(a,b); printf(“Result: %u\n”,ret); exit(0); } $gcc add-p1.c $./a.out Result: 7 $

Posted byjeffrinJune 20, 2014Posted inC, Programming Languages
June 2014
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May   Jul »
TRUEANGLE, Proudly powered by WordPress.