a)
void HalfString(char *arr, int size)
{
int i;
for(i = 0; i < size/2; ++i)
{
printf("%c", arr[i]);
}
}
b)
void TwoIntDiff(int a,int b)
{
int res = a - b;
printf("a = %d b = %d res = %d", a, b, res);
}
c)
void TwoFloatDiv(float a, float b)
{
float res = a/b;
printf("a = %f b = %f res = %f", a, b, res);
}
Comments
Leave a comment