adspace
plz answer.. a program that takes a string e.g. "345" and
returns integer 345
Answer Posted / swapnil chhajer
#include<stdio.h>
#include<stdlib.h>
int main()
{
char str[10];
printf("Enter the string : ");
gets(str);
printf("Converted integer : %d",atoi(str));
getchar();
}
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
i have a written test for microland please give me test pattern
develop algorithms to add polynomials (i) in one variable
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is the general form of a C program?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
What are compound statements?
Do you know the difference between malloc() and calloc() function?
How do you convert strings to numbers in C?
Is int a keyword in c?
What is pointer to pointer in c with example?
write a program to find out prime number using sieve case?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Differentiate between null and void pointers.
write a progrmm in c language take user interface generate table using for loop?