C Interview Questions
Questions Answers Views Company eMail

char *p="name"; printf(p);

646

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

2075

main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?

GATE,

1 2652




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

662

Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

1995

what is difference between null and nul in c language

2 3110

what are non standard function in c

646

#include int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?

1 2182




what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

Wipro,

1534

what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

667

what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

790

write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

Google,

807

how to multiply two number taking input as a string (considering sum and carry )

Wipro,

2 2970

Write a code to reverse string seperated by spaces i/p str=India is my country o/p str=aidnI si ym yrtnuoc After writing code, optimize the code

1 2911

difference between the array and linked list general difference related to memory

2 1734


Post New C Questions






Un-Answered Questions { C }

Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

1801


Write a c program to build a heap method using Pointer to function and pointer to structure ?

3426


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1043


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

809


How to delete a node from linked list w/o using collectons?

1340






we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

42


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

770


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

862


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.

445


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2079


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

874


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

142


to find the closest pair

1000


why return type of main is not necessary in linux

925


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

1697