Which function in C can be used to append a string to another string?
No Answer is Posted For this Question
Be the First to Post Answer
what is ur strangth & weekness
0 Answers Cognizant, LG Soft, NetEnrich,
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
write a string copy function routine?
marge linklist
dynamically allocate memory for linear array of n integers,store some elements in it and find some of them
write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }
A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.
What is the use of the #include directive?
How can you return multiple values from a function?
How can I write functions that take a variable number of arguments?
What is the difference between text and binary i/o?