|
-
Feb 5th, 2001, 02:57 PM
#1
Thread Starter
Hyperactive Member
I can not get this code to work i've tried everything!!
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
int main(void)
{
char mystr;
char *p;
char retval;
printf("%s\n", "enter letter");
scanf("%s", mystr);
p = &mystr;
retval = *p;
printf(retval);
system("pause");
return 0;
}
Matt 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|