I think what grumpy is saying is right, because I have ported the same code to VB 6 and that too could not play around with the port without inpout32.dll.
Now a program called parmon which...
Type: Posts; User: torqu3e
I think what grumpy is saying is right, because I have ported the same code to VB 6 and that too could not play around with the port without inpout32.dll.
Now a program called parmon which...
#include<iostream.h>
#include<conio.h>
#include<dos.h>
void left();
void right();
int main()
{
clrscr();
int i;
for(i=1;i<=10;i++)
Need to know how the following code would function...
#include<stdio.h>
int main()
{
int i=7;
printf("%d",i++*i++);
}
[root@Torqu3e Desktop]# more primes.C
#include<stdio.h>
#include<math.h>
//#include<conio.h>
int main(void)
{
long unsigned int limit=4294967294;
long unsigned int n,i,flag,j=1;
...
Thanks for the concern.
It aint about the list of the numbers that is whether i print them or keep them in a file is no concern. I am just trying to push my programming capability limits to edge. I...
Indented Code:
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
long unsigned int limit=4294967294;
long unsigned int n,i,flag,j=1;
clrscr();
Man that sounds greek and latin to me, I know C programming but aint a pro at your levels, a more elaborate explanation would be highly appreciated.
anon, that algorithm finds some numbers known as pseudo primes, thats why you are getting so many primes in such a short range.
Vart i will switch to "while(!kbhit());" instead of getch();
If i...
I get that memory part, tell me the other problems please, the above program runs fine so i presume it is right, the primes being given as output are also right, i have checked them.
I wrote this code for generating loads of prime numbers.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
long unsigned int limit=4294967294;
long unsigned int...
Thx guys u actually genuinely solved a query which i was banging my head for, I am from India and we have teachers with bookish knowledge so wouldnt expect an answer from them.
else
printf("%f,x");
getch();
}
If i do this it returns the value of x as 0.100000.
As per ur link salem, i understand that the processor's registers and the memory store values differently....
Vart i do agree with the part of 0.1 being stored that way, but why is it so and even if it is so. If it stores 0.1 as 0.099999 or 0.1000001 then why does it not compare it also that way?
#include<stdio.h>
#include<conio.h>
void main()
{
float x=0.1;
if(x==0.1)
printf("If");
else
printf("Else");
getch();