Lab Exercise 8 (Part 1)
Lab Exercise 8 (Part 1)
#include <stdio.h>
int main ()
{
/* an array with 5 elements */
double balance[5] = {1000.0, 2.0, 3.4, 17.0, 50.0};
double *p;
int i;
p = balance;
Change
for ( i = 0; i < 5; i++ )
is your observation.?
to
Int num[6]={ 4 ,5 ,6 ,7 ,8 ,9 }
Your program have to display as following for every element in the array:
Index
:0
Number :4
Even number
4. Write a function named trimfrnt() that deletes all leading blanks from a
sentence. Write the function using pointer. Test your function using the
string All the best in your exam
(Hint :string is an array of characters)