4.If there are no errors specify NOERROR in the form text box.
5.There will be only logical questions and no syntactical errors(if present,ignore them).
5.For filling the answers for set2,a separate form has been provided.
Simon D 9884993229
S.Kannan 9884812861
here M is 1024;
6)Give two pairs of strings for which the program won't work:
#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
clrscr();
char name1[40],name2[40];
cin>>name1;
cin>>name2;
int count=strlen(name1)+strlen(name2);
int i,j;
cout<<count<< "is the initial total no of characters\n";
for(i=0;i<strlen(name1);i++)
for(j=0;j<strlen(name2);j++)
if(name1[i]==name2[j])
{
name1[i]='/';
name2[j]='/';
count-=2;
}
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
clrscr();
int i=-1;
char c;
char password[100];
for(;;)
{
c=getch();
password[++i]=c;
if(c==13) break;
printf("*");
}
password[++i]='\0';
if(strcmp(password,"code")==0) printf("\nvalid password");
else printf("\ninvalid password");
getch();
}