Recent questions tagged strings

0 0 votes
1 1 answer
556
556 views
Why we should or should not include null string in this count ?
5 5 votes
1 1 answer
891
891 views
The provided C code is a version of the C string library function strlen(), which calculates the length of a given string.unsigned int mystrlen(char *c) { unsigned in...
1 1 vote
2 answers 2 answers
796
796 views
char st[] = {‘G’,’A’,’T’,’E’,’\0’};then string ka length 4 hoga ya 5 with null character?
0 0 votes
1 1 answer
571
571 views
In the $\varepsilon$-NFA, $M=\left(\left\{\mathrm{q}_{0}, \mathrm{q}_{1}, \mathrm{q}_{2}, \mathrm{q}_{3}\right\},\{\mathrm{a}\}, \delta, \mathrm{q}_{0},\left\{\mathrm{q}_...
1 1 vote
0 0 answers
425
425 views
I have seen alot of people saying that we can make an Integer string in C language.But according to me we can only make a character string in C language.here is the code:...
0 0 votes
1 1 answer
643
643 views
Write input set, strings and language for the following 1) The set of all strings with three consecutive O's over (0,1) .
0 0 votes
0 0 answers
717
717 views
Give the state diagram of DFAs with the specified number of states recognizing each of the following languages. In all parts, the alphabet is {0, 1}. {w | accept all stri...
0 0 votes
1 1 answer
6.3k
6.3k views
0 0 votes
3 3 answers
1.3k
1.3k views
Write a regular expression for all strings of 0’s and 1’s in which there is an even number of 0’s between any two 1’s.
1 1 vote
0 0 answers
343
343 views
Write a regular expression for all strings of 0’s and 1’s in which at least one copy of the substring 01 occurs before any copy of the substring 10 occurs in the string. ...
0 0 votes
1 1 answer
486
486 views
Write a regular expression for all strings of 0’s and 1’s in which the total number of zeros to the right of each 1 is even.
0 0 votes
0 0 answers
401
401 views
For sr 7,11- 1. i.Strings of 0's and 1's of the form aa', where a is binary string and a' is reverse of a.ii. Binary string of the form xy s.t. x!=y. Total length of xy i...
0 0 votes
1 1 answer
736
736 views
does this string ‘baab’ belongs (ba)* U (ab)* ?
0 0 votes
1 1 answer
697
697 views
{ε}* , {ε} are these two expressions equal or different ? where ε is the empty string
0 0 votes
0 0 answers
1.8k
1.8k views
Consider a string is stored in a word addressable memory where each word is of 4 Bytes. If the string starts at 100 and ends at 104 then which of the following can be the...
1 1 vote
1 1 answer
1.0k
1.0k views
DOUBT:suppose a memory space of 16B is given and it is asked that what is the maximum length of string it can store.then do we have to consider the space taken by the “\...
1 1 vote
0 0 answers
526
526 views
We use character array to declare string in C. So, if I declare an array likecharacter ch[ ] = {‘a’,’k’,’a’,’/o’};and try printing ch[3] like :printf(“%C”,ch[3]);what wil...
1 1 vote
1 1 answer
591
591 views
Let us assume a binary alphabet $\Sigma=\{a,b\}.$ Two words $u,v\in \Sigma^{\ast}$ are said to be conjugates if there exist $w_{1},w_{2}\in \Sigma^{\ast}$ such that $u=w_...
4 4 votes
1 1 answer
2.5k
2.5k views
In a string of length $n$, how many of the following are there? Prefixes. Suffixes. Proper prefixes. Substrings. Subsequences.
0 0 votes
0 0 answers
300
300 views
3 3 votes
3 3 answers
2.7k
2.7k views
Consider the following grammar:$S \rightarrow XY$$X \rightarrow YaY \mid a \text{ and } Y \rightarrow bbX$Which of the following statements is/are true about the above gr...
0 0 votes
0 0 answers
896
896 views
int main(){ int a=2,b=2,c=2; printf("%d",a==b==c); return 0;}what is the output??? and what will be done during executioncan anyone explain this……...
0 0 votes
1 1 answer
2.6k
2.6k views
Can anyone explain answer is A