Code: #include<stdio.h> #include<conio.h> #include<math.h> void main() { int ya,a=3,xa=97,q=353,po; po=pow(a,xa); ya=po % q; printf("ya=",ya); getch(); }
Re: help needed : poblem here is that program shows no error while compiling and does 3 raised to power 97 will result in a very large value beyond the capacity of an integer variable and overflow will result - declare your variables as double
Re: help needed : poblem here is that program shows no error while compiling and does here overflow occurs ......bt its not a compile time error .........n ....... u hav to use farmol arguments in printf then .......... u may eliminate that.....