C Interview Questions
Questions Answers Views Company eMail

p*=(++q)++*--p when p=q=1 while(q<=6)

KINPOE,

471

what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

College School Exams Tests,

428

why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

418




A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

504

difference between Low, Middle, High Level languages in c ?

Bosch, Infosys,

807

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

XYZ,

915

What is the difference between if else and switchstatement

496

Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?

TCS,

2 846




how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

422

Using which language Test cases are added in .ptu file of RTRT unit testing???

1291

Write a program to generate the first n terms in the series --- 9,11,20,31,...,82

1 4011

print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5

Winit,

3 1360

#include int main( ) { Int a=300, b, c; if(a>=400) b=300; c=200; printf(“%d%d ”, b, c); return0; }

1 744

How. To pass the entrance test

Tech Mahindra,

1 462

C language questions for civil engineering

Tech Mahindra,

324


Post New C Questions






Un-Answered Questions { C }

please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

857


difference between object file and executable file

4064


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

933


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 ?????? */ }

828


what is the structure pointer?

895






shorting algorithmS

903


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

1434


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

518


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

655


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

2846


pierrot's divisor program using c or c++ code

950


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

690


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

709


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

838


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

435