wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / abhishek karnani
int a=10,b=5;
a=a+b-(b=a);
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Does c have an equivalent to pascals with statement?
What are the primitive data types in c?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Why flag is used in c?
What is integer constants?
Difference between constant pointer and pointer to a constant.
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 a function argument have default value?
What is the difference between ++a and a++?
Can include files be nested?
Can you please explain the difference between malloc() and calloc() function?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
Why does everyone say not to use gets?
Is calloc better than malloc?