Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #4K
~2K People Reached
Favorite Forums
Favorite Tags

11 Posted Topics

Member Avatar for D.M.
Member Avatar for D.M.

I need help! In this program, if you hit the ENTER KEY the program will display the word "newline". If you hit the SPACE BAR it will display the word "spacebar". But unfortunately, the second statement did'nt worked (SPACE BAR). help me.... [CODE]#include<stdio.h> main() { char n; scanf("%c",&n); if(n='\n') printf("newline.."); …

Member Avatar for Narue
0
108
Member Avatar for D.M.

I have a program that reads the data from a stream. Let's just pretend that I already made file in C:\ (record.txt) and I wrote the following words: hello world me you But the program will display in this manner: hello world me you instead of: hello world me you …

Member Avatar for D.M.
-1
77
Member Avatar for J_17
Member Avatar for D.M.
0
70
Member Avatar for D.M.

Guys, I got a problem in File Handling.. I entered two words(My World)to be saved in a file but the file displays the first word only. Can you guys help me....

Member Avatar for abhishek25
0
122
Member Avatar for chezkaty

try this one: [CODE]#include<stdio.h> main() { int n,r; scanf("%d",&n); while(n!=0) { r=n%10; printf("%d",r); n=n/10; } return 0; }[/CODE] I hope this one works.....

Member Avatar for Narue
0
159
Member Avatar for jonkim9483

diwarak wagle, what do you mean by [COLOR="Red"]while(1)[/COLOR] in your program

Member Avatar for D.M.
0
372
Member Avatar for hackit
Member Avatar for D.M.
Member Avatar for ashok1514
0
650
Member Avatar for geeksforgeek

I think scanf and getline has the same function... But, I dont know what would be its header file.. You cant use getline in C.

Member Avatar for D.M.
0
143
Member Avatar for kylelendo

int is used when the number is between 32,000 and -32,000. float is used when the number involves decimal point. double is used for larger numbers..eg.1000000000000000000

Member Avatar for D.M.
0
106

The End.