yea, I got it now. Thanks :)
Type: Posts; User: newbie123
yea, I got it now. Thanks :)
I tried using 'long long', 'unsigned long' but nothing seems to be working.. it is still printing out garbage for bigger values
What do u mean by compiler support? I'm using Cygwin to compile my code.
Hi All,
I need to store and print 10 digit numbers in each location of an array. What data type should I use? Integer arrays are able to hold only upto 9 digit numbers. Any suggestions?
I figured out where I went wrong.. Thanks for your help.. It is what made me think :)
I had changed the return statements in the function.. Let me knw if it makes sense now?
if i>j then it shud return an error.. if it is equal to j, it shud return a[i]
Hi, All
I'm trying to call a function recursively. I tried this code and it doesnt seem to work correctly. The code compiles perfectly but it gives the wrong output. Can you guys suggest what...
hi all,
I'm trying to print out the current time using C++. I'm using Microsoft visual studio 2008..
#include <windows.h>
#include <stdio.h>
#include <time.h>
Thanks a lot, man... You're the man :)
#include<stdio.h>
#include<conio.h>
main()
{
int n,a[100],i,j,count=0;
printf("Enter total no of elements in permutation");
scanf("%d",&n);
printf("Enter all the elements of permutation");...
sorry abt that. I'll write my code and get back with my doubts..
Hi all,
I'm kind of newbie to these programming stuff. Can you please help me out with a code to find inverses of a permutation?
For example, if the elements are 10 4 12 11 6, to find inverse,...