C Interview Questions
Questions Answers Views Company eMail

C program to read the integer and calculate sum and average using single dimensional array

467

main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

1 700

4. main() { int c=- -2; printf("c=%d",c); }

600




Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...

2 6319

void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

476

In which layer of the network datastructure format change is done

Honeywell,

562

write a c program for swapping two strings using pointer

1371

cavium networks written test pattern ..

Cavium Networks,

2493




my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

348

what is used instead of pointers in java than c?

Vuram,

1 557

#include int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }

Zoho,

3 1595

Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17

821

main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }

Vector, Vector India,

1 3441

#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

342

print pattern 1 1 33 33 555 555 77777777 555 555 33 33 1 1

Winit,

1 1092


Post New C Questions






Un-Answered Questions { C }

i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

828


#include { printf("Hello"); } how compile time affects when we add additional header file .

726


in iso what are the common technological language?

966


How to write a code for reverse of string without using string functions?

880


A set of N billiard balls are set on a one-dimensional table. The table is 1 meter long, set north-south with two pockets at either side. Each ball has zero width and there is no friction so it is moving with a fixed velocity of either northward or southward and bounces back in a perfect elastic collision from other balls it encounter on its way (or drop into one of the pockets). Your job is to keep track of the balls movements. Task Please write a program that gets the initial place, speed and direction of all the balls and gives the position of a specific ball after t seconds. Input The first line contains the number of scenarios. Each one of the other lines in the input contains a scenario: The first number, N, is the number of balls; followed by N pairs of numbers: the distance in centimeters from the south end of the table and the speed (positive speed meaning it moves northward); the last two numbers are the number i of the target ball you should track and the time T in seconds. Output The output is a single number for each line which is the place (distance in centimeters from the south end of the table) of the tracked ball after T seconds. Note: There is no new line character at the end of the result. Sample Input 5 1 50 1 1 1000 1 50 1 1 6 1 60 -2 1 6 2 10 1 95 -1 2 30 2 10 1 95 -1 2 60 Sample Output 100 56 48 65 70

1359






Stimulate calculator using Switch-case-default statement for two numbers

1802


how to find binary of number?

1895


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

907


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1000


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

2755


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2146


hi send me sample aptitude papers of cts?

932


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

957


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

1779


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

1161