Thank you for your help. From now on I'll use Pelles C..:)
Type: Posts; User: raj.knd
Thank you for your help. From now on I'll use Pelles C..:)
Friends different compilers gives different output. How do I understand which one is correct?
That same value 20 25.
#include<stdio.h>
void main()
{
int i=3,j=3,a,b;
a=++i*++i;
b=++j*++j;
Just now I compiled the code using Pelles C compiler and output 20 20 on same Windows platform.
Thank you Tater. I will try to get that one.
Yes. I made the changes and got the answer. Thank you.
#include<stdio.h>
void main()
{
int i=3,j=3,b;
int a=++i*++i;
b=++j*++j;
printf("%d\n%d",a,b);
}
I am using Turbo C 4.5 on Windows 7 platform
#include<stdio.h>
void main()
{
printf("%%%%\n");
}
output:
%%
Thanks. Its working. But if I want to do any arithmetic operation will getc work? I think not.
That data is in a file. I am using TurboC 4.5.
I have already used that fflush(stdout);
1 2 3 4
file "text1.txt" contain the above data
#include<stdio.h>
void main()
{
FILE *fp;
but it is privately derived..according to book is is not possible.. thats why i am confusing...
#include<iostream.h>
#include<conio.h>
class A
{
private :
int a;
};
class B : private A
{