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 ? | 7 Yes | 1 No |
main() { char name[10],s[12]; scanf(" \"%[^\"]\"",s); } How scanf will execute?
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }
Write a program to receive an integer and find its octal equivalent?
How to reverse a String without using C functions ?
33 Answers Matrix, TCS, Wipro,
Find your day from your DOB?
15 Answers Accenture, Microsoft,
What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }
main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit = (bit >> (i - (i -1)))); } } a. 512, 256, 128, 64, 32 b. 256, 128, 64, 32, 16 c. 128, 64, 32, 16, 8 d. 64, 32, 16, 8, 4
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }