Code:
#include<stdio.h> #define N_ELEMS 5 void main(void) { int array[N_ELEMS]; int i; for(i=0;i<N_ELEMS;i++) array[i]=i; for(i=0;i<N_ELEMS-1;) array[++i]++; }
#include<stdio.h> #define N_ELEMS 5 void main(void) { int array[N_ELEMS]; int i; for(i=0;i<N_ELEMS;i++) array[i]=i; for(i=0;i<N_ELEMS-1;) array[++i]++; }
switch(inSign) { case '-': case '+': case '*': case '/': }
#include "expression.h" #include <stdlib.h> #include <stdio.h> #include <string.h> xContainer splitTerm(string,int,int); expContainer createExpression() { expContainer exp; /*allocate memory*/ exp = (expContainer)malloc(sizeof(struct expressions)); if(exp != NULL) { /*set inital terms
for(j=0;j<10;j++) { printf("\nEnter the number of terms:\n"); scanf("%i",&j); printf("\nPlease enter expression info as follow:\n"); { double value; double power; double times;
Leave a comment: