:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Programming Languages >> C


 C interview questions  C Interview Questions (2266)
 C++ interview questions  C++ Interview Questions (1121)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (652)
program for swapping two strings by using pointers in c language
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
# 1
#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 ?    3 Yes 1 No

Other C Interview Questions
  Question Asked @ Answers
char ch=10;printf("%d",ch);what is the output Accenture 14
give one ip, find out which contry Google 4
count the numbers between 100 and 300, that star with 2 and ends with 2 Mind-Tree 5
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions) Satyam 2
please help me.. how to write a code of this output?? "Enter range number:"10 1 is an odd number 2 is an even numbers 3 in an odd numbers 4 " to 10" "printing all odd numbers:" 1,3,5,7,9 "printing all even numbers:" 2,4,6,8,10 "sum of all odd numbers:25 "sum of all even numbers:30 using a C Programming ARRAY pleas pleas help.. its my project ..please :(   1
What is true about the following C Functions (a) Need not return any value (b) Should always return an integer (c) Should always return a float (d) Should always return more than one value TCS 2
what is the size of an integer variable?   4
write the program for maximum of the following numbers? 122,198,290,71,143,325,98   5
the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i",i); return 0; } TCS 4
Difference between Class and Struct. Motorola 13
write a program to find the number of even integers and odd integers in a given array in c language Olive-Tech 13
print out of string in this format; 1. "rajesh" 2. \n 3. %d mpower 4
For more C Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::