What is %s and %d in c?
No Answer is Posted For this Question
Be the First to Post Answer
Why we use break in c?
What are the types of unary operators?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
how we can make 3d venturing graphics on outer interface
write a program to display the numbers in the following 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4
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
Explain the difference between strcpy() and memcpy() function?
write a program that accepts 3 numbers from the user. dispaly the values in a descending order.
Difference between Function to pointer and pointer to function
int a=2,b=3,c=4; printf("a=%d,b=%d\n",a,b,c); what is the o/p?
Study the Following Points: a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static 1. Which of the Following Statements are true w.r.t Bit- Fields A)a,b&c B)Only a & b C)Only c D)All
12. Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV