a C prog to swap 2 no.s without using variables just an
array?
Answer Posted / karthik
void main()
{
int a=10,b=20;
a^=b^=a^=b;
printf("a=%d,b=%d",a,b)
getch();
}
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
How can I write a function that takes a format string and a variable number of arguments?
Find MAXIMUM of three distinct integers using a single C statement
What are global variables and explain how do you declare them?
c program for searching a student details among 10 student details
What is extern storage class in c?
How can variables be characterized?
What is the use of a semicolon (;) at the end of every program statement?
What is use of pointer?
Why do we use & in c?
What is a pointer value and address in c?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
Do string constants represent numerical values?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Can one function call another?
How would you rename a function in C?