Search Results

Search: Posts Made By: sizzler786
Forum: Programming 09-30-2013
2,702
Posted By sizzler786
Apologies. The code is running for me and I do...
Apologies.
The code is running for me and I do have my warnings turned on etc;
First it asks you to choose from a calculator and Binary convertor,
You either enter "1" (for calc) and "2" (for...
Forum: Programming 09-30-2013
6,969
Posted By sizzler786
Thank you, I was trying to get the integer b =...
Thank you, I was trying to get the integer b = 253 in binary form though, I'm assuming this wouldn't help. because it gives me a totally different binary
Forum: Programming 09-30-2013
2,702
Posted By sizzler786
Segmentation fault
I keep getting this fault on a lot of the codes I write, I'm not exactly sure why so I'd really appreciate it if someone could explain the idea to me.

For example this code

#include <stdio.h>...
Forum: Programming 09-30-2013
6,969
Posted By sizzler786
if (b & a) ? if (b&a) what? I dont see how that...
if (b & a) ?
if (b&a) what? I dont see how that is a condition, could you explain it please?

Sorry about being so dumb
Forum: Programming 09-26-2013
6,969
Posted By sizzler786
binq
Thank you.

I wrote that code to get a binary form of the value of variable 'b'.. But its only giving me 00000000. Wheres the logical error?



Sahil
Forum: Programming 09-26-2013
6,969
Posted By sizzler786
Yeah i think i was trying to execute it as a .c...
Yeah i think i was trying to execute it as a .c file whereas i compiled it as .o, nevermind, thankyou anyway :)

---------- Post updated at 01:14 PM ---------- Previous update was at 01:10 PM...
Forum: Programming 09-24-2013
6,969
Posted By sizzler786
Badly places ()'s on C
I dont know why this Linux would give me badly placed () error all the time for this;



#include <stdio.h>
int main()
{
register int num=0 ;
while ((num < 5))
++num;
printf("Pass...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 05:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy