U see the whole point of this construction is that........whatever be the size of ur input it doesnt matter since what it does is it reads a singel char at a time and stores it in *str and then...
Type: Posts; User: Priyank
U see the whole point of this construction is that........whatever be the size of ur input it doesnt matter since what it does is it reads a singel char at a time and stores it in *str and then...
Hey in simple lingo....u cd even try this ...
Divide the random no. by 16.....ok get the remainder now if that is gr8r than 8 then the nearest no. is 16*(quotient+1) otherwise the no. is just...
getch() returns whatever user enters ...i suppose .....and the code which i have used requires no bound checking at all it allows u to enter strings till the time u want to and then hit Ctrl+z to get...
Pascals triangle has got nothing do with factorials......
it is something like this:-
1
1 2 1
1 3 3 1
1 4 6 4 1
......
and it goes on and on......it works on the principle that a numer is...
you could read the whole strings by using the concept of end of file(eof) character.the character tha ends all char arrays. try this out:
char *str;
*str=getch();
while ( *str++ != eof)...
It doesn't work out succesfully
How to create a pascal's triangle using a single dimension array with the last number specified?