recursions in C man not in phY....!!
Type: Posts; User: ajayd
recursions in C man not in phY....!!
Can Anyone Tell Me What Are Recursions....??
What For It Is Used....??
& What Is Call By Reference Or Call By Value....???
switch statement provides multiple way branching. ie it allows users to select any 1 of the several alternatives.
its syntax is:
switch (expression)
{
case label 1 :...
use for loop man
yO i know tht....!!
actually i m working on linux
he himself is blank so posted in da forum :)
if the given expression is itself in that form and asked to program on it then how to convert it
if i convert it using algebra i am getting different answers compared to the manual answers so
plz check this is a different case in 1st case only decrement operators were used in this case both decrement as well as increment operators are used
please tell me for this expresion :
a = (b++) + (- - b) + (b - -) + b
here b = 4
tell me manually ans : i am getting 15
by applying your logic i am gettin 17
plz check.....!!
As i m new to this so
One day i ll surely fly ;)
i ll check on different cases hope it ll work true in all cases
Thanks a lot matsp :cool:
you are genious....!!
got it guys got it thX a lot....veeeeee :)
is that we replace n- - or - -n by n-1
replace n++ or ++n by n+1
can ny1 xplain in detail step by step plz....!!
yes now i got the Logic thX a lot matsp & Elysia :)
then pl tell me how to solve this : using c program....!!
a=2*b+(--b)+3*(b++)+b
oh k thX matsp
act i was posting tht program bfore i read ny thng posted by u ppl ThX
how about this...!!
#include<stdio.h>
main()
{
int a,b,s;
printf("Enter the value of s\n");
scanf("%d",&s);
CAN ANY1 PLZ TELL ME HOW INCREMENT & DECREMENT OPERATORS WORK IN C AS WELL AS IN LINUX IF KNOWN....!!
AS FAR AS I KNWO THERE ARE POST & PRE INCREMENT/DECREMENT OPERATORS :
I M GETTING DIFF RESULTS...
while (n)
{
d = n%10;
sum += d;
n /= 10;
}
hp so u gOt iT mIkeY