Recommended Posts

hi guys..i needed a help in writing the c code..i am not that good in c but trying to learn it..i was stuck with the following problems among many of them..i would be glad if i could get a c code for the questions below..pls write d code in c and not c++ as i am trying to learn c and not c++..hehe..

thanks guys..

ques 1- write a program to check whether one string is a sub string of another string.

quest 2- the librarian in a library wants an application that will calculate the due date for a book given the issue date. the no. of days in which the book is due can be decided by the librarian at the time of issuing a book(for example- if book is issued on 14-01 and d no of days that a book can be kept issued is 15,then the program should display output at 29-01).

quest 3- write a program to find the nearest smaller prime numbr for a given integer; use a function to decide whether a number is prime or not.

quest 4- given three numbers, determine whether they can make a triangle or not.write a program for the same

Link to post
Share on other sites

sorry we don' do people homework,

this is all very basic, and what ever book you are reading from (or class) should cover these basics..

but incase you have more questions?

http://www.zeuscmd.com/tutorials/cplusplus/33-C++Strings.php

also if you are having problems, submit your code and we can point to where you may be going wrong

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...