Explain how do you convert strings to numbers in c?
Define and explain about ! Operator?
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
int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?
How do I round numbers?
Explain output of printf("Hello World"-'A'+'B'); ?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
to get a line of text and count the number of vowels in it
difference between string and array?
While(1) { } when this loop get terminate is it a infinite loop?
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
what are the 10 different models of writing an addition program in C language?
What is the size of enum in c?