How to write a program for swapping two strings without
using 3rd variable and without using string functions.
Answer Posted / sri
main()
{
int a=5,b=3;
a=a+b;
b=a-b;
a=a-b;
printf(" %d %d ",a,b);
getch();
}
Is This Answer Correct ? | 33 Yes | 42 No |
Post New Answer View All Answers
how to write a c program to print list of fruits in alpabetical order?
Where are c variables stored in memory?
Why is c fast?
What is a void pointer in c?
What does the c preprocessor do?
Explain output of printf("Hello World"-'A'+'B'); ?
What is storage class?
find the sum of two matrices and WAP for it.
Why ca not I do something like this?
Write a program to generate random numbers in c?
Why doesnt that code work?
Write a C program in Fibonacci series.
Explain is it valid to address one element beyond the end of an array?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
Explain Basic concepts of C language?