without using arithmatic operator convert an intger variable
x into x+1
Answer Posted / geeta
x++
Is This Answer Correct ? | 2 Yes | 13 No |
Post New Answer View All Answers
How is a macro different from a function?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Explain the difference between ++u and u++?
How can I split up a string into whitespace-separated fields?
What is the Purpose of 'extern' keyword in a function declaration?
What is the scope of static variables in c language?
How to define structures? ·
What is hash table in c?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is string function c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
Why is it that not all header files are declared in every C program?
Define C in your own Language.
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Which control loop is recommended if you have to execute set of statements for fixed number of times?