No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
student
13 Posted Topics
Re: that is simple ++i means pre increment. i++ means post increment. consider the programme main() { int a=7; printf("%d\t%d\t%d\t%d\t",++a,a++,++a,a++); printf("%d\n"a); getch(); } the output is 10 10 8 8 11 a++ here increments the value and shows it but ++a increments the value and gives it for next operation.ie ++a … | |
hi i want to display pascals triangle on computer screen.the pascals triangle goes like this. and what is logic. 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 and so on. | |
Re: consider the statement : printf("%d%d%d",i++,i++,i++); (p) (q) (r) let the right most i++ be r and.... first of all the processeing in the above printf statement starts from right(ie r) now i++ means post increment. now r carries the value 1 but increments the value and gives it to q(ie … | |
Re: reverse(int n) { long sum=0;int rem; while(n>0) {rem=n%10; sum=sum*10+rem; n=n/10;} return sum; main() ................................ hope u can do it from here.good luck. | |
Re: amstong numer means when u add the cubes of digits of number u should get the number.ex:407=4^3+0^3+7^3 | |
hi i think some guys here do not matter to see their messages(as told at the beggining).does this happen to any one of you.if it did happen what did you do.does the management check these things out??? :?: :?: | |
Re: there can be pointer to pointer. int a=25; int*b=&a; int**c=&b; | |
hi i want to get following output. 1 2 2 2 3 3 3 3 3 4 4 4 4 4 4 4 and so on in 1st row one 1 in 2nd three 2 in 3rd five 3 in 4rt seven 4 in 5th nine 5 (all odd outputs) | |
Re: that means for every value of x u will have x values of y. the loop inside is execcted x times more than the outsideloop. | |
Re: i think u have problem with system file.u again start installing ur xp in same folder and repair it.it will solve the problem. | |
Re: the condition must be: if((y%4==0&&y%100!=0)!!(y%400=-0)) pf("leap year") ......it goes like this |
The End.