| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | [C] C Puzzles |
From: "Bruce D. Wedding" I found these on a C Yahoo group and some look like fun. 1. Write a "Hello World" program in 'C' without using a semicolon. (Hint: this makes use of C99 to be legal) 2. Write a C program without using any loop (if, for, while etc) to print numbers from 1 to 100 and 100 to 1; 3. Find if the given number is a power of 2. 4. Multiply x by 7 without using multiplication (*) operator. 5. Write a function in different ways that will return f(7) = 4 and f(4) = 7 6. Remove duplicates in array 7. Finding if there is any loop inside linked list. 8. Write code to determine if a TYPE is signed or unsigned. Got it? OK, write code to determine if a value is unsigned or signed. --- BBBS/LiI v4.01 Flag-5* Origin: Prism's_Point (1:261/38.1) SEEN-BY: 633/267 270 @PATH: 261/38 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.