r/cprogrammers • • Aug 03 '18

Urgent help needed

1 Upvotes

I have to submit a project very soon and I'm lost. I need help to capitalise all the characters in a string in C. Any help is much appreciated.


r/cprogrammers • • Dec 24 '17

Simple C Question

1 Upvotes

Playing around with this simple C program that implements a stack. http://www.sanfoundry.com/c-program-stack-implementation/

I'm trying to understand why when you enter a letter in lieu of a number, the program seems to run into an infinite loop when you type in any kind of character.

I assume that this is some kind of stack overflow? But I'm really not sure. Would love to know if you do :)

Repro Steps:

  1. compile and run the program

  2. type in a letter (like "h" for instance)

  3. Observe the infinite loop


r/cprogrammers • • Dec 22 '17

Just tell me how to restrict the value of input

1 Upvotes

There are 5 brothers in a family. You need to tell the eldest brother's age.you are given age of all brothers. This is the riddle. But I want to know is there any way to restrict yhe value of (age)input, like (1<=age<=100). In C !


r/cprogrammers • • Nov 15 '17

C Programming help needed

1 Upvotes

Hello anyone can kindly explain to me what is required for this following question

i)Allow Admin to enter the number of consultation session and the number of students (who are now choosing consultation session).

ii)For each selection, allow Admin to enter the following information: student ID, full name, which session to choose

In the end there will be only 1 session (the one with the largest number of students chosen)offered by the lecturer.So please sort the consultation sessions by the number of students chosen (in descending order). As a final conclusion, please print out which session is to be offered.

For archiving purpose, write the following information into a file named: consultationSelection.txt


r/cprogrammers • • Sep 30 '19

Matrix C program

0 Upvotes

write a program that does matrix multiplication and summation. The user should be able to enter the first and second matrix and the operator, the matrix should be a 4 by 4.The user should specify the size of the matrix and the program should reject size less than 4.


r/cprogrammers • • Sep 26 '19

c programming

0 Upvotes

Write a program that uses a nested if statement and nested while loop together with a continue/break statement and go to statement