- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
I Proud to be a Muslim and Pakistani.
11 Posted Topics
Re: "C For Dummies, 2nd Edition" is a good book for starting!!! | |
Re: #include <stdio.h> #include <ctype.h> main() { char msg[] = "Hello World!"; char* pmsg = msg; int i = 0; while (*(pmsg + i) != '\0') { if (isupper(*(pmsg + i))) { *(pmsg + i) = tolower(*(pmsg + i)); } else if (islower(*(pmsg + i))) { *(pmsg + i) = toupper(*(pmsg … | |
Re: #include <stdio.h> #define MAX 500 main() { float a, per, sum = 0; int i; char *pos[] = {"1st", "2nd", "3rd", "4th", "5th"}; for (i = 0; i < 5; i++) { printf("Enter marks of %s subject: ", pos[i]); scanf("%f", &a); sum += a; } per = (sum/MAX)*100; printf("Your average … | |
Re: #include <stdio.h> #include <string.h> main() { char str[50]; gets(str); int i = 0; int res[50]; while (str[i] != '\0') { res[i] = str[i]; printf("%d ", str[i]); i++; } putchar('\n'); getchar(); return 0; } | |
Re: #include <stdio.h> #include <string.h> char *reverseme(char *str) { int len = strlen(str); char temp; int i; len--; for (i = 0; i < len/2; i++) { temp = str[i]; str[i] = str[len-i]; str[len-i] = temp; } return; } main() { char line[100]; printf("Enter a line: "); gets(line); reverseme(line); puts(line); getchar(); … | |
Re: #include <stdio.h> #include <string.h> main() { char str[100]; int i, len, f = 0; printf("Enter a string: "); gets(str); len = strlen(str); printf("The indices are: "); Again: // Loop while character not found in start // if (str[f] != ' ') { printf("%c = %d", str[f], f); } else { … | |
Re: [** Best Way To Create Guess Game In C# **](http://talha-programming.blogspot.com/2014/06/guess-game-version-10-c_27.html) Love DaniWeb! | |
Re: **Please Do not take tension, the very easy solution is on this page** [Array Element Count - C++ - Talha Programming](http://talha-programming.blogspot.com/2014/06/array-counter-c.html) | |
Re: **Best way to count the array element is on this page !** [Array Element Counter - Talha Programming](http://talha-programming.blogspot.com/2014/06/array-counter-c.html) |
The End.