Question { 18798 }
How does free() know how many bytes to free?
Answer
Is This Answer Correct ? | 6 Yes | 2 No |
main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
what is the output?
Answer
Is This Answer Correct ? | 6 Yes | 3 No |
main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
what is the output?
Answer
Is This Answer Correct ? | 9 Yes | 6 No |
Question { 4044 }
Write a program that accepts a string where multiple spaces
are given in between the words. Print the string ignoring
the multiple spaces.
Example:
Input: “ We Are Student “
Output: "We Are Student"
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
Write a program that accepts a string where multiple spaces
are given in between the words. Print the string ignoring
the multiple spaces.
Example:
Input: “ We.....Are....Student “ Note: one .=1 Space
Output: "We Are Student"
Answer
Is This Answer Correct ? | 0 Yes | 1 No |
Question { 7703 }
write the function int countchtr(char string[],int
ch);which returns the number of timesthe character ch
appears in the string. for example the call countchtr("she
lives in Newyork",'e') would return 3.
Answer
Is This Answer Correct ? | 1 Yes | 0 No |
Question { 5790 }
plz answer.. a program that takes a string e.g. "345" and
returns integer 345
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
struct ptr
{
int a;
char b;
int *p;
}abc;
what is d sizeof structure without using "sizeof" operator??
Answer
Is This Answer Correct ? | 13 Yes | 0 No |
What are bit fields? What is their use?
Answer
Is This Answer Correct ? | 1 Yes | 1 No |
Write code for atoi(x) where x is hexadecimal string.
Answer
Is This Answer Correct ? | 3 Yes | 0 No |
Two's compliment of -5
Answer
Is This Answer Correct ? | 0 Yes | 5 No |
CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position.
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position.
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
Difference between null pointer and dangling pointer?
Answer
Is This Answer Correct ? | 2 Yes | 0 No |
Difference between null pointer and dangling pointer?
Answer
Is This Answer Correct ? | 2 Yes | 1 No |