Tuesday, July 28, 2009

Write Programming in C using pointer (Challenge for C programmer)?

1) write a program to compare two strings using pointer


2) write a program to print prime numbers between 1 to 500 using pointer


3) write a program to sort two dimensional string array using pointer

Write Programming in C using pointer (Challenge for C programmer)?
Hardly a challenge - this is basic stuff.





It is also obviously HW. But I will give you some pointers.





1) this what strcmp does - look at the source code for strcmp


2) someone wants to make sure you know the difference between the pointefr and the data


3) use strcmp and a linear sort. Just switch the pointers - not the strings.





Good Luck


No comments:

Post a Comment