I am trying to generate 10 random numbers from 0-9, which goes well but I'd like them to each be unique, meaning for each one to only be used once.
#include <stdio.h>
#include <stdlib.h>...
Type: Posts; User: Unee0x
I am trying to generate 10 random numbers from 0-9, which goes well but I'd like them to each be unique, meaning for each one to only be used once.
#include <stdio.h>
#include <stdlib.h>...
Thank you,
It worked perfectly once I added two curly braces around the if statement.
0001 #include <stdio.h>
0002 void Dec(int n)
0003 {
0004 if(n > 0)
0005 {
I have written a function that takes in a positive decimal and returns its Binary equivalent; however, the output always adds an additional zero to the binary.
what could I do to get rid of it?
If...
I am struggling to grasp a firm grip on How and when it is necessary to use return when creating your own functions in C..
I saw this piece code Yesterday:
#include <stdio.h>
unsigned int...
#include <stdio.h>
#include <stdlib.h>
I am trying to copy 64 Points into an array called Sq and print out one point at Sq[2][5], and it compiles but at runtime I get a segmentation fault 11...
First , Thank You.
Do you mean like this:
#include <stdio.h>
int main()
{
int x,y;
I have been working on a 8x8 Array for a day or two, and this what I have
#include <stdio.h>
int main()
{
int x,y;
Ok , I've got it.
Thank you again....
It just makes so much sense to add A & B after program knows A & B...
(How about that...?)
Thanks again...
Thanks laserlight, but if you can , please explain what you mean.
I have drafted this code below, for some reason int C is returned as the address instead of sum of two ints. If anybody can help, I would be very grateful..
#include <stdio.h>
int main()
{
Hey Anduril,
First and foremost, sorry about the Bold text in my post:I wrote it on my Ipad during lunch at work..
Thank you so much for every bit of advice you gave me and like you said, it...
Hey guys,
I'm new to c programming and so far I've completed some basics(all beginner stuff) such as variables,arrays,pointers and struts.However, I'm looking for any advice to gaining a strong...