main()
{
char p[ ]="%d\n";
p[1] = 'c';
printf(p,65);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
A
Explanation:
Due to the assignment p[1] = ‘c’ the string becomes, “%c\n”.
Since this string becomes the format string for printf and
ASCII value of 65 is ‘A’, the same gets printed.
| Is This Answer Correct ? | 30 Yes | 3 No |
Answer / hunny kukreja
Answer:
65
Explanation:
As p is having "%d\n",so it has become format string
for printf,so same will get printed.i.e. number 65
| Is This Answer Correct ? | 4 Yes | 11 No |
could you please send the program code for multiplying sparse matrix in c????
#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
C program to print magic square of order n where n > 3 and n is odd
How to reverse a String without using C functions ?
33 Answers Matrix, TCS, Wipro,
main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }
int aaa() {printf(“Hi”);} int bbb(){printf(“hello”);} iny ccc(){printf(“bye”);} main() { int ( * ptr[3]) (); ptr[0] = aaa; ptr[1] = bbb; ptr[2] =ccc; ptr[2](); }
main() { float me = 1.1; double you = 1.1; if(me==you) printf("I love U"); else printf("I hate U"); }
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
void main() { int i=5; printf("%d",i+++++i); }
main() { clrscr(); } clrscr();