c program to clear nth bit of the number || Bitwise Operators || Problem Solving ||

#include <stdio.h> int main() {     int num, n, newNum;     printf("Enter any number: ");     scanf("%d", &num);     printf("Enter nth bit to clear (0-31): ");     scanf("%d", &n);     newNum = num & (~(1 << n));     printf("Number before clearing %d bit: %d (in decimal)\n", n, num);     printf("Number after clearing %d bit: %d (in decimal)\n", n, newNum);     return 0; } Logic :-  num&(~(1<<n));

           ðŸŒžVocabulary🌞


1. WANE (VERB): (क्षीण होना):  decrease

Synonyms: decline, diminish

Antonyms: increase

Example Sentence:

About half-past eight the combat began to wane.


2. DEPLOY (VERB): (तैनात करना):  position

Synonyms: station, post

Antonyms: concentrate

Example Sentence:

Forces were deployed at strategic locations.


3. DISASTROUS (ADJECTIVE): (विनाशकारी):  bcatastrophic

Synonyms: calamitous, cataclysmic

Antonyms: fortunate

Example Sentence:

A disastrous fire swept through the museum.


4. OVERLOOK (VERB): (अनदेखी करना):  disregard

Synonyms: neglect, ignore

Antonyms: punish

Example Sentence:

She was more than ready to overlook his faults.


5. HUMANITARIAN (ADJECTIVE): (मानवतावादी):  compassionate

Synonyms: humane, unselfish

Antonyms: selfish

Example Sentence:

She has been recognized as a great humanitarian for her efforts to end hunger.


6. TORMENT (NOUN): (व्यथा):  agony

Synonyms: suffering, torture

Antonyms: pleasure

Example Sentence:

Their deaths have left both families in torment.


7. RELENTLESS (ADJECTIVE): (सतत):  persistent

Synonyms: continuing, constant

Antonyms: short-lived

Example Sentence:

The heat of the desert is relentless.


8. ALLY (NOUN): (सहयोगी):  associate

Synonyms: colleague, friend

Antonyms: enemy

Example Sentence:

He was forced to dismiss his closest ally.


9. PROFUSE (ADJECTIVE): (प्रचुर):  copious

Synonyms: prolific abundant

Antonyms: scarce

Example Sentence:

I offered my profuse apologies.


10. FIDGETY (ADJECTIVE): (बेचैन):  restless

Synonyms: restive, on edge

Antonyms: calm

Example Sentence:

I get nervous and fidgety at the dentist.

Comments

Post a Comment

Popular posts from this blog

Merge Strings Alternatively || Leetcode Solution || Easy Approach || Simple || ✅✅✅✅💯💯💯💯🔥🔥🔥🔥

HOW TO PREPARE FOR JEE MAINS IN HOME EFFECTIVELY

1978. Employees Whose Manager Left the Company || Leetcode SQL solution || simple sql query || 🔥🔥🔥💯💯💯✅✅✅