to convert a string without using decrement operater and
string functions
Answer / shiva
itoa() int to string
atoi() this is to string to int
| Is This Answer Correct ? | 1 Yes | 0 No |
write a programming in c to find the sum of all elements in an array through function.
main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these
Why are algorithms important in c program?
write a method for an array in which it can display the largest n next largest value.
Why do we need volatile in c?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What are two dimensional arrays alternatively called as?
What is the use of keyword VOLATILE in C?
What is sparse file?
Will Macros support multiple arguments ?
the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i",i); return 0; }