1.

किसी स्ट्रिंग के अक्षरों को छोटे अक्षरों में बदलने के लिए किस फंक्शन का उपयोग किया जाता है?

Answer»

strlwr( ) फ़ंक्शन

Explanation:

strlwr( ) फ़ंक्शन एक सी स्ट्रिंग फ़ंक्शन है, जिसका उपयोग उपयोगकर्ता द्वारा निर्दिष्ट वर्णों या स्ट्रिंग को लोअरकेस अक्षरों में बदलने के लिए किया जाता है।

C program

#include

#include

int main()

{

  char string[1000];

  PRINTF("Input a string to convert to LOWER case\n");

  GETS(string);

  printf("The string in lower case: %s\n", strlwr(string));

  RETURN  0;

}

OUTPUT

Input a string to convert to lower case

PATIALA

The string in lower case: patiala



Discussion

No Comment Found