program for swapping two strings by using pointers in c language
Answer / umesh
#include <stdio.h>
void fastSwap (char **k, char **l)
{
char *t = *k;
*k = *l;
*l = t;
}
int main ()
{
char num1[] = "abc";
char num2[] = "def";
fastSwap ((char**)&num1,(char**)&num2);
printf ("%s\n",num1);
printf ("%s\n",num2);
return 0;
}
| Is This Answer Correct ? | 9 Yes | 8 No |
totally how much header files r in c language
I want tcs placement papers of 2004-2009 , its urgent
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What are register variables? What are the advantage of using register variables?
What do you mean by Recursion Function?
A stack can be implemented only using array?if not what is used?
What is console in c language?
what is the use of a array in c
what are the files which are automatically opened when a c file is executed?
what will be maximum number of comparisons when number of elements are given?
What does static variable mean in c?
how to introdu5ce my self in serco