Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #31.8K
Ranked #4K
~753 People Reached
Favorite Forums
Favorite Tags
Member Avatar for oldbamaguy

I define a variable as float num1; I try to use a scanf to read it scanf("%f", num1); I get some (what I think is a crazy response) statement expects a float, argument is a double I am sure I must be doing something wrong because I also get this …

Member Avatar for oieronle
0
93
Member Avatar for AspiringCoder

How would you take an int and make each diget into a array element? For example: [CODE]int num = 12345; int nums[4]; // how ever you enter numbers into the array // would result in: // nums[0] = 1 // nums[1] = 2 // and so on...[/CODE]

Member Avatar for AspiringCoder
0
155
Member Avatar for stanleyz

Hi everyone, I'm new to c-programming. I'm currently trying to write a program using function call but end up in a mess. Can anyone help me please? I've been trying this for a few days. I wanted to write a program with "factorial" and "power" I'm refering to this example. …

Member Avatar for oieronle
0
274
Member Avatar for kubatur0

[code]#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <string.h> typedef struct msgbuf { long mtype; FILE *mtext; } message_buf; main(){ int msqid; int msgflg = IPC_CREAT | 0666; key_t key; message_buf sbuf; size_t buf_length; key = 1234; if ((msqid = msgget(key, msgflg )) < 0){ perror("msgget"); exit(1); …

Member Avatar for oieronle
0
97
Member Avatar for Anex

I want to create a structure comprising of an integer and a pointer to it. However it doesnt seem to work and devC++ gives the following error [CODE]struct loha { int i; int *p = &i; ...7 } *pp; ...8[/CODE] Error : 7 I:\G\My CPP\structures.c [Warning] no semicolon at end …

Member Avatar for oieronle
0
134