C Interview Questions
Questions Answers Views Company eMail

Tell me a C program to display the following Output? 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5

3 2745

Output for following program using for loop only * * * * * * * * * * * * * * *

3 2721

program for following output using for loop? 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5

Infosys, Aptech,

8 14690




program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5

Infosys,

8 5701

simple program of graphics and their output display

Elysium,

816

If the static variable is declared as global, will it be same as extern?

Samsung,

1 4852

How to print India by nested loop? I IN IND INDI INDIA

Wipro, NIIT,

3 6525

simple program of graphics and thier outpu display with a want what is out put of graohics in c language

CSC, HCL,

1 1893




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

HCL,

980

plz let me know how to become a telecom protocol tester. thank you.

1060

If input is 123 then how to print 100 and 20 and 3 seperately?

4 3933

An entire structure variable can be assigned to another structure variable if __________

TCS, Wipro, Sasken, Tech Mahindra,

3 7760

Give the logic for this #include #include void main() { clrscr(); int a=10,b; b=++a + ++a; printf("%d", b); getch(); } Output: 24......How?

Accenture,

2 3350

in malloc and calloc which one is fast and why?

1 3750

Difference between C and Embedded C?

1 2906


Post New C Questions






Un-Answered Questions { C }

Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

1636


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1063


write a program to rearrange the array such way that all even elements should come first and next come odd

1032


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

677


write a program to generate address labels using structures?

1590






c program to compute AREA under integral

1059


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1212


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

893


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1154


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1006


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

1132


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

8514


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

820


The OS is a program that uses various data structures. Like all programs in execution, you can determine the performance and other behavior of the OS by inspecting its state - the values stored in its data structures. In this part of the assignment, we study some aspects of the organization and behavior of a Linux system by observing values of kernel data structures exposed through the /proc virtual file system. The /proc virtual file system: Linux uses the /proc file system to collect information from kernel data structures. The /proc implementation provided with Linux can read many different kernel data structures. If you cd to /proc on a Linux machine, you will see a number of files and directories at that location. Files in this directory subtree each corresponds to some kernel data structure. The subdirectories with numeric names contain virtual files with information about the process whose process ID is the same as the directory name. Files in /proc can be read like ordinary ASCII files. You can open each file and read it using library routines such as fgets() or fscanf(). The proc (5) manual page explains the virtual files and their content available through the /proc file system. Requirements in detail: In this part, you are asked to write a program to report the behavior of the Linux kernel. Your program should run in two different versions. The default version should print the following values on stdout: • Processor type • Kernel version • The amount of memory configured into this computer • Amount of time since the system was last booted A second version of the program should run continuously and print lists of the following dynamic values (each value in the lists is the average over a specified interval): • The percentage of time the processor(s) spend in user mode, system mode, and the percentage of time the processor(s) are idle • The amount and percentage of available (or free) memory • The rate (number of sectors per second) of disk read/write in the system • The rate (number per second) of context switches in the kernel • The rate (number per second) of process creations in the system If your program (compiled executable) is called proc_parse, running it without any parameter should print out information required for the first version. Running it with two parameters "proc_parse " should print out information required for the second version. read_rate represents the time interval between two consecutive reads on the /proc file system. printout_rate indicates the time interval over which the average values should be calculated. Both read_rate and printout_rate are in seconds. For instance, proc_parse 2 60 should read kernel data structures once every two seconds. It should then print out averaged kernel statistics once a minute (average of 30 samples). The second version of your program doesn't need to terminate.

3365


if p is a string contained in a string?

742