Explain how do you convert strings to numbers in c?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Define and explain about ! Operator?

0 Answers  


what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

1 Answers   IBM,


int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?

4 Answers   TCS,


How do I round numbers?

0 Answers  


Explain output of printf("Hello World"-'A'+'B'); ?

0 Answers  






.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

0 Answers   Wilco,


to get a line of text and count the number of vowels in it

3 Answers   Satyam,


difference between string and array?

6 Answers  


While(1) { } when this loop get terminate is it a infinite loop?

5 Answers  


Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).

1 Answers  


what are the 10 different models of writing an addition program in C language?

0 Answers  


What is the size of enum in c?

0 Answers  


Categories