Implement a program for the following.

>> Tuesday, November 30, 2010

People of Opportunity4u Guys i have an assignment in C If you possible you can do this assignment and post the comments as answers.

 *       1. Accept 3 strings  and a number as command line arguments.
*           e.g. $ ./output ABCD LMNOP PQR 4
*
*       2. The last argument, say n, is the required number of characters in the
*            strings.
*
*       3.  If all the strings are having "n" characters display an  appropriate message.
*           e.g. $ ./output ABCD LMNO PQRS 4
*
*       4.  If any one string has less than "n" characters then display an appropriate message.
*           e.g. $ ./output ABCD LMN PQRS 4
*      
*       5. If any one string has more than "n" characters then concatenate the other
*           2 strings and display the concatenated string.
*           e.g. $ ./output ABCD LMNO PQRST 4
*    Concatenate ABCD and LMNO
*           e.g. $ ./output ABCDEF LMNO PQRST 4
*    Concatenate LMNO and PQRST
*
*       Note: You may use all string handling functions except strlen() and strcat() or strncat().

0 comments:

Lorem Ipsum

  © Blogger templates Palm by Ourblogtemplates.com 2008

Back to TOP