Archive for aptitude technical programs
You are browsing the archives of aptitude technical programs.
You are browsing the archives of aptitude technical programs.
CONCEPT
Let rate=R%per annum, Time= T years
1.Present worth (PW) = (100*Amount)/(100+(R*T))
= (100* TrueDiscount)/(R*T)
2.TrueDiscount (TD) = (P.W*R*T)/100
= (Amount*R*T)/(100+(R*T))
3.Sum =(SimpeInterest*TrueDiscount)/(SimpleInterest-TrueDiscount)
4.SimpleInterest-TrueDiscount=SimpeInterest on TrueDiscount
5.When the sum is put at CompoundInterest,then
PresentWorth=Amount/(1+(R/100))^T
GeneralConcept:
Suppose a man has to pay Rs.156 after 4 years and the rate of interest is 14%per annum
Clearly ,Rs.100 at 14% will amount to Rs156 in [...]
main( )
{
void *vp;
char ch = ‘g’, *cp = “goofy”;
int j = 20;
vp = &ch;
printf(“%c”, *(char *)vp);
vp = &j;
printf(“%d”,*(int *)vp);
vp = cp;
printf(“%s”,(char *)vp + 3);
}
Answer:
g20fy
Explanation:
Since a void pointer is used it can be type casted to any other type pointer. vp = &ch stores address [...]