Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Help
»
Problem Printing ASKII value
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Problem Printing ASKII value (Read 3991 times)
Rabib
Single posting newcomer
Posts: 3
Problem Printing ASKII value
«
on:
March 31, 2011, 02:27:08 pm »
I wrote a C code in CODE::BLOCKS which was supposed to print ASKII value of a character. But it keeps printing garbage values. Here is my code,
#include<stdio.h>
int main()
{
int t;
scanf("%c",&t);
printf("%d ",t);
return 0;
}
Please help me!!
Logged
Ceniza
Developer
Lives here!
Posts: 1441
Re: Problem Printing ASKII value
«
Reply #1 on:
March 31, 2011, 05:30:46 pm »
Completely unrelated to Code::Blocks.
Please ask your question in an appropriate forum.
Please read the rules before you post!
Logged
Jenna
Administrator
Lives here!
Posts: 7252
Re: Problem Printing ASKII value
«
Reply #2 on:
March 31, 2011, 06:49:00 pm »
Topic locked, because it violates our forum rules !
Sorry.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Help
»
Problem Printing ASKII value