plz answer....A program that takes 3 variables e.g a,b,c in
as seperate parameters and rotates the values stored so
that value goes a to b, b to c and c to a .

Answer Posted / venkatesh sabinkar

void main()
{
int a,b,c,t;
clrscr();
printf("enter the values of a, b and c");
scanf("%d%d%d",&a,&b,&c);
t=a;
a=b;
b=c;
c=t;
printf("a=%d,b=%d,c=%d",a,b,c);
getch();
}

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1190


How can you determine the size of an allocated portion of memory?

734


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1872


Why is c called a mid-level programming language?

718


Describe the modifier in c?

596






Hi can anyone tell what is a start up code?

1607


write a proram to reverse the string using switch case?

2459


Why c is a mother language?

552


What is meant by realloc()?

667


What are the 4 types of organizational structures?

616


What is pass by reference in c?

603


How can I do peek and poke in c?

611


Are local variables initialized to zero by default in c?

541


What does a pointer variable always consist of?

655


How will you declare an array of three function pointers where each function receives two ints and returns a float?

771