How to write a program for swapping two strings without
using 3rd variable and without using string functions.
Answer Posted / ramu pasupuleti
#include<stdio.h>
#include<conio.h>
{
printf("enter a,b values");
a=a+b;
a=a-b;
b=a-b;
printf("%d%d",a,b);
getch();
}
| Is This Answer Correct ? | 2 Yes | 18 No |
Post New Answer View All Answers
How can you invoke another program from within a C program?
Write a program to check whether a number is prime or not using c?
Explain what is gets() function?
What are shell structures used for?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
what are bit fields in c?
What are the keywords in c?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Subtract Two Number Without Using Subtraction Operator
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What are the 5 types of organizational structures?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
How will you declare an array of three function pointers where each function receives two ints and returns a float?
How do you declare a variable that will hold string values?