Write a program to exchange two variaables without temp
Answer Posted / vijay
Sir,... im not comfortable with the 2nd ans cud pls explain
me .?????/
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Describe the steps to insert data into a singly linked list.
How do you print an address?
What is extern storage class in c?
Why c is called free form language?
What is main () in c language?
how can f be used for both float and double arguments in printf? Are not they different types?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What is wrong with this declaration?
Differentiate call by value and call by reference?
How are structure passing and returning implemented?
Is c is a high level language?
What is auto keyword in c?
What is cohesion in c?