Thanks for all the responses.
Type: Posts; User: Kokila
Thanks for all the responses.
#include <stdio.h>
void main()
{
int x;
for(x=10;x;x--)
printf("%d\n",x);
}
In the above program, the output is printing from 10 to 1. But I didn't give any lower limit. How is it...
Hai,
1) In one book, I have read that in C Programming, to store negative numbers , 2's complements are used. Why is it like that ? Is there any advantage to use 2's complement?(Positive numbers...
Hi ,
What is the need of virtual function in C++? Here is my program:
#include<iostream.h>
class parent
{
public:
virtual void display()
I have tried the following program:
#include<iostream.h>
#include<fstream.h>
#include<string.h>
class Member
{
private:
int Age;
Thank you very much for your replies. Now I have some idea about your discussion.
-Kokila.
What is the difference between getc() and getchar() functions?
Anybody can explain with example?
#include <stdio.h>
void main()
{
int array[9]={1,2,3,4,5,6,7,8,9};
int i=-1;
while (i<8)
{
printf("The Element is %d and its index is %d\n", array[i],++i);
}
}