Skip to main content

Posts

Featured

Command Line Calculator

  # include < stdio.h > # include < string.h > # include < stdlib.h > int main ( int argc , char * argv [] ) {     int num1 , num2 ;     char * operation ;     operation = argv [ 1 ];     num1 = atoi ( argv [ 2 ]);     num2 = atoi ( argv [ 3 ]);     if ( strcmp ( operation , " add " ) == 0 )     {         printf ( " %d \n " , num1 + num2 );     }     if ( strcmp ( operation , " subtract " ) == 0 )     {         printf ( " %d \n " , num1 - num2 );     }     if ( strcmp ( operation , " multiply " ) == 0 )     {         printf ( " %d \n " , num1 * num2 );     }     if ( strcmp ( operation , " divide " ) == 0 )     {         printf ( " %d \n " , num1 / num2 );     }   ...

Latest posts

Bank Management System(project)

Bill Receipt Generator

Fibonacci Series

HTML Parser Using C Language

Sum Of Random Two Digit Number

Calculations Using Pointers

Demonstration Of Pointer Arithmetic

Check Prime Number Using C Language

Basic Calculator Using C Language

Demonstration Of Array Pointer