473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

a little programm

29
can someone give my a hint on how to write a c programm with this output.
0
00000000 00000000 00000000 00000000
and if i give a command it print out
1
00000000 00000000 00000000 00000001
command
2
and so on
Oct 22 '07 #1
5 1223
can someone give my a hint on how to write a c programm with this output.
0
00000000 00000000 00000000 00000000
and if i give a command it print out
1
00000000 00000000 00000000 00000001
command
2
and so on
It is easier to translate an hexadecimal number to binary than translating a decimal to binary.

Hope that helps.
Oct 22 '07 #2
locy
29
can someone give me a hint on how to write C programm with this output.
0
00000000 00000000 00000000 00000000
cammand
1
00000000 00000000 00000000 00000001
and so on

i ve try this but it doent work
scanf("%d",integer)
printf("\n wert war: %d,integer")
return 0;
Oct 22 '07 #3
RedSon
5,000 Expert 4TB
can someone give me a hint on how to write C programm with this output.
0
00000000 00000000 00000000 00000000
cammand
1
00000000 00000000 00000000 00000001
and so on

i ve try this but it doent work
scanf("%d",integer)
printf("\n wert war: %d,integer")
return 0;
Is this a class assignment?
Oct 22 '07 #4
RedSon
5,000 Expert 4TB
Double posting your question is not allowed and will get your account banned. Do not do it again.

-MODERATOR
Oct 22 '07 #5
weaknessforcats
9,208 Expert Mod 8TB
scanf() needs the address of the integer.
prinft() just needs the integer.
Oct 22 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Atz | last post by:
Hi to all ! 1.) Is there a way to make exe file from java class file ? 2.) I want to make multiple uninstalation of some files, under windows. E.g. instead of going into control panel ,...
7
by: broebel | last post by:
hey, for the real programmers amongst you, this may be really annoying but I've been learning the language for only two days. this is my problem, in this programm,which already works I now...
1
by: Toni | last post by:
How can I insert a Backgroundimage in my C++ programm? Microsoft Visual Studio C++, Win 32 Konsolenanwendung. Can you answer me in germany, because my english is very bad. An example where very...
0
by: Alexander F?hrmann | last post by:
Grüß euch! Wir haben hier in der Firma ein Problem mit Access! Sobald man im Access den VBA-Editor aufrufen will, kommt folgender fehler! -------------------- Runtime Error!
38
by: Martin Marcher | last post by:
Hi, I've read several questions and often the answer was 'C knows nothing about .' So if C knows that little as some people say, what are the benefits, I mean do other languages know more...
6
by: TIM | last post by:
for example i have one simple programm int main() { int test = NULL; while(1){ printf("%d\n",test); getch(); test++; }
2
by: Jan | last post by:
Hello! I am looking for a way to do a search&replace in ASCII-Files by a vb.net 2005 programm. Of coarse I can open the files, loop to every line, make a replace, and save the line. But I wonder...
83
by: deppy_3 | last post by:
Hi.I am started learning Programm language C before some time.I am trying to make a programm about a very simple "sell shop".This programm hasn't got any compile problem but when i run it i face...
2
by: LordChaos | last post by:
Dear all, I am a newbie in Java, I got the following problem: I am going through a list of directories. The programm looks inside each directory for specific files and writes them in an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.