Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Toggle nth bit in a given integer - num

Answer Posted / qint

num ^ (1 << n)

Is This Answer Correct ?    31 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an identifier?

979


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

2074


How to write c functions that modify head pointer of a linked list?

935


Why is c so powerful?

1065


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1298


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1199


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

2400


Explain is it valid to address one element beyond the end of an array?

1148


Is a pointer a kind of array?

1116


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1155


What is a 'null pointer assignment' error?

1162


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2412


Differentiate between the = symbol and == symbol?

1208


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1419


Explain the difference between malloc() and calloc() function?

988