-
Output of a++ + ++a + a++
What is the answer of a++ + ++a + a++
int a=5;c = a++ + ++a + a++;//compiler produces the answer 28!!!//HowUsing C, How will you search for a word in file ?
if i enter an ID Number it should look in the .txt file the employee who owns that ID Number then it will display it on the screen..
Pre and post increment operators
Why does ++i * ++i give 49 when i=5?
C if condition Puzzle
What's the "condition" so that the following codesnippet prints both HelloWorld !if "condition"printf ("Hello");elseprintf("World");
Even or Odd number
Write a program to find a number if even or odd with out using conditional operator and if-else?
Can a variable be both const and volatile?
Yes. The const modifier means that this code cannot change the value of the variable, but that does not mean that the value cannot be changed by means outside this code. For instance, in the example in FAQ 8, the timer structure was accessed through a volatile const pointer. The function itself did not change the value of the timer, so it was declared const. However, the value was changed by...
Tricky C Program questions
1)Write a C program to find a peculiar two digit number which is three times the sum of its digits.2) Bacteria are known to multiply very rapidly. If a certain container contains just one bacterium on the first day and there are twice as many on the next day. In this manner the number of bacteria in the container doubles itself everyday. Assuming that the container would be full on the 10th day with...
TCS C/C++ Questions
1. Difference between "C structure" and "C++ structure".2. Diffrence between a "assignment operator" and a "copy constructor"3. What is the difference between "overloading" and "overridding"?4. Explain the need for "Virtual Destructor".5. Can we have "Virtual Constructors"?6. What are the different types of polymorphism?7. What are Virtual Functions? How to implement virtual functions in "C"8. What...
Sum of two numbers without using arithmetic operators
Ex:int a=10;int b=10;int sum=a+b;without using "+" operator calculate sum
C program to count numbers of positive and negative numbers
Write a C program using arrays to count the numbers of positive and negative numbers which accepts the inputs as "size of the array" & "elements of the array" and outputs as "number of negative numbers in an array are" & "numbers of positive numbers in an array are" ?
Return Multiple Values from Function
How to return multiple values in C language function?
It looks like you are using an AD Blocker!
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Ans