main()
{
char c=' ',x,convert(z);
getc(c);
if((c>='a') && (c<='z'))
x=convert(c);
printf("%c",x);
}
convert(z)
{
return z-32;
}
Answer / susie
Answer :
Compiler error
Explanation:
declaration of convert and format of getc() are wrong.
| Is This Answer Correct ? | 9 Yes | 1 No |
How to read a directory in a C program?
Give a one-line C expression to test whether a number is a power of 2.
#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
write a c-program to display the time using FOR loop
#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }
main() { char not; not=!2; printf("%d",not); }
#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above
How can i find first 5 natural Numbers without using any loop in c language????????