#include<iostream.h>
#include<conio.h>
#include<string.h>

void main()
{
char s1[30],d[30];
int l;
clrscr();
cout<<"Enter your name: \n";
cin>>s1;
cout<<s1<<endl;
l=strlen(s1);
cout<<l;
d=strupr(s1);
cout<<d;
getch();
}

When i run this code , it shows Lvalue required error
please help

any one here to help????????????

d=strupr(s1);

d is an array, but strupr() returns a pointer to char. That is a type mismatch on the one hand, and on the other you cannot assign to an array.

First you need to understand the error , read here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.