compare the code of mine and yours, and check out the syntax error
your code:
Code:
#include <conio.h>
#include <stdio.h>
typedef unsigned char u_char;
typedef unsigned int u_int;
main(void){
int a;
u_int b;
u_char c;
float d;
printf("enter an integer: ");
scanf("%s",&b);
printf("\nyou entered: ");
printf("%s\n\n");
printf("%s in octal is: ");
printf("%o");
my code
Code:
#include <conio.h>
#include <stdio.h>
typedef unsigned char u_char;
typedef unsigned int u_int;
main(void){
int a;
u_int b;
u_char c;
float d;
printf("enter an integer: ");
scanf("%d",&b);
printf("\nyou entered: ");
printf("%d\n\n",b);
printf("%o in octal is: ",b);
s.s.harish