Answer Posted / banavathvishnu
#include<stdio.h>
#include<conio.h>
Togglebit(int k,int bit)
{
printf("after %d bit is toggled = %d",bit,(k^(1<<(bit-
1))));
return 1;
}
int main()
{
int i;
int bitno;
printf("enter the number \n");
scanf("%d",&i);
printf("enter the bit number to toggle \n");
scanf("%d",&bitno);
Togglebit(i,bitno);
getch();
return 1;
}
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Why we use stdio h in c?
How can I write functions that take a variable number of arguments?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
How old is c programming language?
What is the difference between far and near in c?
How is a null pointer different from a dangling pointer?
What are run-time errors?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is an lvalue?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is pointer to pointer in c with example?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical