C Answers

Questions answered by Experts: 1 680

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

c program for vowel or not
int i=-1,j=10,k,l;
k=i && j;
l=i || j;
printf("%d %d",l,j);
#include<stdio.h>
int main ()
{
int n;
for(n=7;n!=0;n--)
printf("n= %d",n--);
return 0;
}





Kindly explain it's output...
I have an assignment that I need to send urgently but I can not. I do not understand linked lists and how to apply them to code. Can you help me?

Write “C” function and draw the flowchart of your algorithm, which constructs the linked list representation of your school number as shown below. This function inputs your school number as an argument and returns the address of the first node of the linked list.
Sample school number: 705102005
Write a function read_records() that read 4 student records from
“roster.txt” and stores them in an array of student_t variables such that the first
array slot stores information of the first student, etc. A0110793H 3 4 A- 4 C 4 B+

Function prototype is as follows.
void read_records(student_t stu[]);
Can explain how this function works?
#include <stdio.h>
int a(int n);
int main(void) {
printf("%d\n", a(4));
return 0;
}
int a(int n) {
if (n == 1 || n == 2) {
return 1;
} else {
return a( a(n-1) ) + a( n-a(n-1) );
}
}
Find the output or errors:
main () {
int j i = 65 ;
printf ( "\nji >=65 ? %d : %c" , j i ) ;
}
Ram is a school boy. He has n good friends numbered from 1 to n. Let this be denoted by an Array A. The friend with higher array index is closer to Ram. It's his birthday today and hence he wants to distribute his birthday chocolates in a way such that A[i+1]=A[i]+3. Now he had n boxes numbered from 1 to n for each of his friend and his mother had filled them with some random number of chocolates, However Ram has made up his mind to distribute the the chocolates in the way described above. He wants to know if it is possible to re-arrange the chocolates in the boxes to have a distribution pattern he likes.
Q. 1: Implement the following function:
surround(char * str, char c)
The first argument is a pointer to a string, whereas the second argument is a
character. When the function returns, the string pointed to by str should be
surrounded by the character in variable c. For instance, if str points to “this”,
and c is ‘X’, then after the function returns, str should point to “XthisX”.
Write two different functions. One calculates the average for each student and stores it in
an array. The second function calculates the average for each course and stores it in an
array
LATEST TUTORIALS
APPROVED BY CLIENTS