Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
15% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
7
Posts with Downvotes
4
Downvoting Members
4
1 Commented Post
0 Endorsements
~12.7K People Reached
Favorite Forums
Favorite Tags
c x 12

5 Posted Topics

Member Avatar for Yustme

Here is better way to write this function because declaring the integer function without return value is illegal in C99. So, it is better to declare void. void uppercase(char *sPtr) { while(*sPtr != '\0') { *sPtr++ = toupper(*sPtr); } }

Member Avatar for brcsur
0
9K
Member Avatar for ashish2expert

I'm having a problem with this code. Can you explain me why this is not working: #include <stdio.h> #include <stdlib.h> typedef struct NODE { int value; struct NODE *next; } Node; int main(void) { Node *root = NULL, *connector; int n; printf("Enter a series of number: "); for(;;) { scanf("%d", …

Member Avatar for deceptikon
0
105
Member Avatar for ashish2expert

Hello, Though I have done this question without string functions but can anybody give me short algorithm for this. Here is the question: Write a program that reverse the words in a sentence: Enter a sentence: *you can cage a swallow can't you?* Reversal of sentence: *you can't cage a …

Member Avatar for ashish2expert
0
924
Member Avatar for ashish2expert

Hi, In the following program i have not defined <stdlib.h> header and included rand() function and it works without this header. How? #include <stdio.h> #include <stdbool.h> #include <time.h> #define NUM_SUITS 4 #define NUM_RANKS 13 int main(void) { bool in_hand[NUM_SUITS][NUM_RANKS] = {false}; int num_cards, rank, suit; const char rank_code[] = {'2', …

Member Avatar for vegaseat
0
524
Member Avatar for ashish2expert

Hi, I have a problem that wants to be calculated only by while loop. (no other loop, no goto, break) Develop a program that will input the miles driven and gallons used for each tankful. The program should calculate and display the miles per gallon obtained for each tankful. After …

Member Avatar for ashish2expert
0
3K

The End.