Explain how can I pad a string to a known length?
No Answer is Posted For this Question
Be the First to Post Answer
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
What is array in C
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
how to implement stack work as a queue?
c program to subtract between two numbers without using '-' sign and subtract function.
Explain the use of 'auto' keyword in c programming?
what will be printed by this printf? printf("%c",printf("hi")["sharkselva"])); }
What does 2n 4c mean?
main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Why is extern used in c?
What is maximum size of array in c?