What is difference between && and & in c?
No Answer is Posted For this Question
Be the First to Post Answer
What is a ternary operator in c?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is
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
What is c programing language?
What is the difference between test design and test case design?
What is dynamic memory allocation?
What is the use of a static variable in c?
what is the use of bitfields & where do we use them?
What are the types of assignment statements?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is the difference between exit() and _exit() function in c?