main()
{char a[10]={1,2,3,4,5,6};int x;
for(x=0;x<4;x++){ b[x]=x+'a';}
printf("%s",b);}
Answer Posted / vignesh1988i
1 st prob.. this will be an error since b[] have not been
declared.......
if you are nt bothered about the syntax obligations....
then the output will be:
abcd
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is structure and union in c?
State the difference between realloc and free.
What is difference between union All statement and Union?
What is the sizeof () a pointer?
Why do we need a structure?
Why does this code crash?
how to execute a program using if else condition and the output should enter number and the number is odd only...
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
C language questions for civil engineering
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
The file stdio.h, what does it contain?
explain what are actual arguments?
Is c is a middle level language?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What are all different types of pointers in c?