Write a function expand(s1,s2) that expands shorthand
notations like a-z in the string s1 into the equivalent
complete list abc...xyz in s2 . Allow for letters of either
case and digits, and be prepared to handle cases like a-b-c
and a-z0-9 and -a-z.
z-a:zyx......ba
-1-6-:-123456-
1-9-1:123456789987654321
a-R-L:a-R...L
a-b-c:abbc


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What is a stream water?

0 Answers  


How can you convert integers to binary or hexadecimal?

0 Answers  


two variables are added answer is stored on not for third variable how it is possible?

3 Answers  


When the macros gets expanded?

0 Answers  


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

0 Answers  






Explain what are its uses in c programming?

0 Answers  


Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986

2 Answers  


What are the disadvantages of c language?

0 Answers  


What does char * * argv mean in c?

0 Answers  


what is inline function?

2 Answers  


WAP that prints the number from 1 to 100. but for multiplies of three print "XXX" instead of the number and for the multiplies of five print "YYY" . for number which are multiplies of both three and five print "ZZZ"

3 Answers  


What is volatile, register definition in C

0 Answers   Cognizant,


Categories