Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
char a1[50];
int a2[50];
printf("enter the characters :");
gets(a1);
for(int i=0;a1[i]!='\0';i++)
a2[i]=(int)a1[i]; // TYPE CASTING
for(i=0;a1[i]!='\0';i++)
printf("%d",a2[i]);
getch();
}
thank you
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Tell us something about keyword 'auto'.
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
There seem to be a few missing operators ..
Why c is a procedural language?
Why is %d used in c?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Which programming language is best for getting job 2020?
Dont ansi function prototypes render lint obsolete?
What is table lookup in c?
Is there any data type in c with variable size?
What is a constant and types of constants in c?
Explain how can I write functions that take a variable number of arguments?
What is the sizeof () a pointer?
Why is C language being considered a middle level language?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none