Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
7
Posts with Upvotes
6
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~12.5K People Reached
Favorite Tags
Member Avatar for Rayhana

Hello, i have some problems with my c code, could you help me? it's returns randomly numbers for averages. #include<stdio.h> #include<stdlib.h> struct Student MStudent(struct Student std); void CalcAvrg(struct Student std); struct Student{ int mark[5][5]; }; struct Student MStudent(struct Student std){ int i,j; for(i=0;i<5;i++){ for(j=0;j<5;j++){ printf("%d. Student's mark for %d. exam …

Member Avatar for mcriscolo
0
153
Member Avatar for pjh-10

if ive a 1000 songs,using shuffle whats the probability, on average, how many tracks will be played before a previous song plays again. tricky probability Q, getting a few different answers, with some variation of accuracy!! thanks

Member Avatar for pjh-10
0
427
Member Avatar for phorce

Hello, I have a 512x512 matrix and I need to split it int 16x16 blocks.. How many blocks will I therefore produce? I've tried 8 blocks of 16x16 but this does not look right when outputting the complete matrix.. Any ideas? Thanks :)

Member Avatar for pheininger
0
56
Member Avatar for kase20

hi guys!! The purpose of the program I am trying to do is to have an input number of 6 digits typed in and this should then be printed as an hour minute second format. for example 123456 would be 12:34:56 This is what I have but it isn't working …

Member Avatar for Ancient Dragon
0
106
Member Avatar for sibwolf

Trying to output a list of all prime numbers and perfect numbers between 1 and 1000. Have been banging head against wall for past 3 hours and this is what I have so far: #include <iostream> #include <string> #include <iomanip> using namespace std; int main() { int x, aDiv, aMax, …

Member Avatar for pheininger
0
189
Member Avatar for meme meme

how can i check if the number is positive or not by using switch statement please who know the answer help me and answer the question

Member Avatar for Tygawr
0
137
Member Avatar for megaman656

for example, i want to combine two number 6 and 8 and it will equal 68. is this possible in C? [ICODE]int a = 6, b = 8,c; c=ab; [/ICODE] and c will = 68.

Member Avatar for VernonDozier
0
101
Member Avatar for arold10

I want to write this function integerPower(base, exponent) that return the value of base^[I]exponent[/I] For instance integerPower(3, 4) = 3*3*3*3 The function has two parameters my question is how can I use the for loop to control the calculation? It's not that hard to use the for loop when the …

Member Avatar for arold10
0
313
Member Avatar for mkab

Hello everyone. I have an error in my makefile. When i execute it on the terminal in linux, it gives me the following errors [CODE]mkab@mkab-ThinkPad-SL400:~/Desktop/TP 5/src$ make test gcc -c prog2.c gcc *.o -o test prog2.o: In function `tester_supprimer': prog2.c:(.text+0x1c): undefined reference to `ajouter' prog2.c:(.text+0x32): undefined reference to `ajouter' prog2.c:(.text+0x48): …

Member Avatar for gerard4143
0
314
Member Avatar for b56r1

#include<stdio.h> main() { int a=10; printf("%d %d %d\n",a=10,a=20,a=30); } o/p: 10 10 10. Here, the latest value is updated and printed as the expression statements separated by commas in funtions are evaluted from right to left. But, in below program by using global variable or static variable why the updated …

Member Avatar for pheininger
0
108
Member Avatar for banders7

This program was developed and tested in the XP environment, so the requisite platform is Windows. It demonstrates some basic sound file manipulation techniques using the Multimedia Control Interface (MCI).

Member Avatar for Azar Mohamed
-3
3K
Member Avatar for gudads

#include <stdio.h> void main() { printf("hi"); } ..................... #include <stdio.h> int main ( void) { printf("hi"); return 0; } .............. q1: What is the diff in two codes? q2: I am habitual of using code type 1 ( the first code), is it ok to follow that way?

Member Avatar for gudads
0
112
Member Avatar for creeps

I'm trying to validate a day of the month, so that if the user enters a negative value or a value above 31, the program prints an error message and prompts for another day. The code below doesn't work as expected. Instead, it gets caught inside an infinite loop, printing …

Member Avatar for Adak
0
225
Member Avatar for gahhon

how can i use the switch statement to find a value in a range? example like, [CODE]#include <stdio.h> void main() { int monthly_sales; double monthly_income; printf("Enter your monthly sales amount > "); scanf("%d", &monthly_sales); switch(monthly_sales) { case 50000: // i want make this in a range, greater than or equal. …

Member Avatar for Adak
0
176
Member Avatar for daredevil786

printf("\"My salary was increased by 15%%!\"\n"); why this prints "My salary was increased by 15%!" i think it should print %% instead of %

Member Avatar for MareoRaft
0
108
Member Avatar for ftl25

Hi. I am trying to create a look up table in C. I have attempted it, but there are compilation errors occurring. Can anyone tell me what i'm doing wrong/offer any advice? I have in my header file the following: [code] struct { (void)(*function)(); const char* functionName; } lookUpTable[] = …

Member Avatar for gerard4143
0
2K
Member Avatar for Interrupt

My hobby is embedded programming therefore I’m learning C , I was just wondering if C has library functions like windows forms,buttons etc(like in C#)?

Member Avatar for $urya
0
3K
Member Avatar for ellenski

Hi, In this "tree" code, what I am having trouble with is for example i inputted 2 numbers ( 7 and 5 ) an 7 is the root. if i wanted to delete 7 which is the root, it should be deleted and replaced by 5 making 5 the new …

Member Avatar for abhimanipal
0
162
Member Avatar for rohith_08
Member Avatar for pheininger
0
242
Member Avatar for daredevil786

[code] int x[] = { 1, 4, 8, 5, 1, 4 }; int *ptr, y; ptr = x + 4; y = ptr - x; [/code] why y is coming 4 in this code i think that it should be 8

Member Avatar for pheininger
0
1K