Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+1
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
~12.1K People Reached
About Me

I Proud to be a Muslim and Pakistani.

Favorite Forums
Favorite Tags
c x 8
c++ x 1
Member Avatar for TalhaMoazSarwar
Member Avatar for jasonkaven
0
109
Member Avatar for Akhila_1

Hey all, I want to learn C programming . Can you please guide me? (From where the software to be downloaded, Tutorials etc.) Thanks Akhila

Member Avatar for vegaseat
0
148
Member Avatar for lewashby

[Linux & gcc] I'm taking C courses and pluralsight.com and I'm both getting an error with a program I got from one of their videos as well as having some trouble understanding something in the code #include <stdio.h> #include <ctype.h> int main() { char message[] = "Hello world!"; for(char *p …

Member Avatar for TalhaMoazSarwar
0
201
Member Avatar for sdtechi

#include<stdio.h> main() { int m1, m2, m3, m4, m5, per; printf("Enter marks in five subjects"); scanf("%d %d %d %d %d", &m1, &m2, &m3, &m4, &m5); per=(m1+m2+m3+m4+m5)/500*100; if(per>=60) printf("First division"); else{ if(per>=50) printf("Second division"); else{ if(per>=40) printf("Third division"); else printf("Fail"); } Enter marks in five subjects 100, 100, 10, 50, 60 …

Member Avatar for TalhaMoazSarwar
1
230
Member Avatar for nacedo

Lets say I want to write a very simple C program wich a is string passed with a pipe at my program and translate every letter to ASCII and store it in an array. I want to use less library as possible and not use malloc For example in a …

Member Avatar for TalhaMoazSarwar
0
201
Member Avatar for greg.lafrance.96

I am following Kernighan and Ritchie to learn C and my solution to exercise 1.19, to reverse a string, does not work. Intermediate print out indicates it is working, but the string is not reversed. Please help, and thanks. #include <stdio.h> #define MAXLINE 1000 // max allowed line length int …

Member Avatar for TalhaMoazSarwar
0
424
Member Avatar for Ctwo

Hello. Just dusting off my function knowladge in relation to pointers for refactoring in a larger project. Came up on this discrepancy. See my verbose debug output. Problem around for loop in function. Short post because adblock wiped my post form two times. :) #include <stdio.h> int mult(int x, int …

Member Avatar for TalhaMoazSarwar
0
190
Member Avatar for negru

Hi. How to find index of first letter in every word in a string? For example, input string is: Programming Languages. Output should be: 0 12, those are the indexes of letters "P" and "L". I tried different approach, to print those numbers but that didn work. Thanks for the …

Member Avatar for TalhaMoazSarwar
0
181
Member Avatar for behemothdave

My assignment is as follows: Create a higher/lower guessing game using a graphical user interface. allow users to keep guessing until they guess the number. Choose two colors for the game: one should be used to indicate that the value the users guessed is higher than the target; the other …

Member Avatar for TalhaMoazSarwar
0
2K
Member Avatar for makan007

I want count the elements in a srand generated array. The array is char array. Can anyone advise me on my void countElements (char* a, int size) function as it don't work? TIA. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; …

Member Avatar for TalhaMoazSarwar
0
778
Member Avatar for super.mina

If i have an array like that int x[100]={1,0,3}; so only i have 3 elements and the rest of the array is zero, how can i count the number of elements in a larger one ..

Member Avatar for mvmalderen
0
8K