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);}
Answers were Sorted based on User's Feedback
Answer / 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 |
What is "Duff's Device"?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What is the meaning of 2d in c?
How do you view the path?
What is keyword with example?
What is memmove?
How do you construct an increment statement or decrement statement in C?
can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?
What does c mean in standard form?
write a program to find the given number is prime or not
2 Answers Accenture, Vasutech,
pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.