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 palindrom string in c language?
What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }
What is "far" and "near" pointers in "c"...?
#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
main(){ char a[100]; a[0]='a';a[1]]='b';a[2]='c';a[4]='d'; abc(a); } abc(char a[]){ a++; printf("%c",*a); a++; printf("%c",*a); }
main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }
typedef struct error{int warning, error, exception;}error; main() { error g1; g1.error =1; printf("%d",g1.error); }
Give a one-line C expression to test whether a number is a power of 2.
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
Finding a number which was log of base 2
char inputString[100] = {0}; To get string input from the keyboard which one of the following is better? 1) gets(inputString) 2) fgets(inputString, sizeof(inputString), fp)