WAP to convert text into its ASCII Code and also write a
function to decode the text given?
Answers were Sorted based on User's Feedback
Answer / harish solanki
#include<stdio.h>
#include<conio.h>
void main()
{
char c,d;
int a;
clrscr();
printf("enter character");
scanf("%c",&c);
a=c;
d=a;
printf("the ascii code is:%d",a);
printf("the character is:%c",d);
getch();
}
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / shashank mahabdi
to convert it into ascii code just assign the entered
variable to a int(integer)variabe e.g.
int i=a
which on printing i will gie 64 as the o/p
| Is This Answer Correct ? | 1 Yes | 6 No |
Why do we need a structure?
what will be the output: main(){char ch;int a=10;printf("%d",ch);}
36 Answers Accenture, TCS, Wipro,
1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?
Tell me what is null pointer in c?
Write a program for Overriding.
Is c procedural or object oriented?
Why is c platform dependent?
Can a file other than a .h file be included with #include?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?
Can you write the algorithm for Queue?
0 Answers College School Exams Tests, TCS,