The Stack Overflow podcast is back! Listen to an interview with our new CEO.
38
reputation
5

ivomalinowskip

Avid teenager looking for a future. Programming is fun. Hacking is fun * 10^27 .

include

include

int main(void) { char buff[15]; int pass = 0;

printf("\n Enter the password : \n");
gets(buff);

if(strcmp(buff, "ILoveCode"))
{
    printf ("\n Correct Password \n");
    pass = 1;
}
else
{
    printf ("\n Wrong Password \n");
}

if(pass)
{
   /* Now Give root or admin rights to user*/
    printf ("\n Root privileges given to the user \n");
}

return 0;

}

0
answers
1
question
~211
people reached
  • France
  • Member for 1 year, 11 months
  • 1 profile view
  • Last seen May 30 at 9:57

Top tags (2)

Score 0
Posts 1
Score 0
Posts 1

Top posts (1) All Questions Answers | Votes Newest

Badges (5)

Gold

Silver

Bronze

5

Rarest