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 / lucky
it gives compilation error bcoz b is not defined
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Explain what are its uses in c programming?
How do you use a 'Local Block'?
How can I read data from data files with particular formats?
What are void pointers in c?
What is structure padding and packing in c?
What is a substring in c?
What are linker error?
Describe static function with its usage?
Write a program to find factorial of a number using recursive function.
how to construct a simulator keeping the logical boolean gates in c
What is the use of sizeof () in c?
Explain how do you sort filenames in a directory?
what is stack , heap ,code segment,and data segment
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......