/*WAP to interchange string3 with string4*/
#include<stdio.h> #include<conio.h> main( ) { char *names[ ] = { "akshay", "parag", "raman", "srinivas", "gopal", "rajesh" } ; char *temp ; printf ( "Original: %s %s", names[2], names[3] ) ; temp = names[2] ; names[2] = names[3] ; names[3] = temp ; printf ( "\nNew: %s %s", names[2], names[3] ) ; }
No comments:
Post a Comment