C Interview Questions
Questions Answers Views Company eMail

what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }

3 2185

"I LOVE MY COUNTRY" write a c program to get "COUNTRY MY LOVE I" as the output. Use any other programming language. It is not mandatory to use C.

ADP, ABC Infotech, Kovair, College School Exams Tests,

11 11942

write a program to sum of its digit with using control structure or with out using loop. for ex: let the number is 25634 then answer will be=2+5+6+3+4=20

4 7809




what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }

1 1866

int x=5; printf("%d%d%d",x,x<<2,x>>2);

TANCET,

2 2646

how do we remove the printed character in printf statement and write next it it

1 1809

hi, which software companys will take,if d candidate's % is jst 55%?

786

how can i print "hello"

3 2608




difference between c and c++

3 2815

what is purpose of fflush(stdin) function

4 26494

how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"

Wipro,

4 7784

how to compare two strings without using strcmp() function??

1 3483

how can i get the string which is having two spaces at the end.suppose the string is "Hello World ".Now at the end i have two spaces.i need to print with that spaces .

1 2003

what is the output for this question: main() { int i=1; printf("%d%d%d",i,i++,++i); }

9 4095

# define x=1+4; main() { int x; printf("%d%d",x/2,x/4); }

5 4574


Post New C Questions






Un-Answered Questions { C }

program for reversing a selected line word by word when multiple lines are given without using strrev

1132


how to capitalise first letter of each word in a given string?

666


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

833


what is the difference between class and unio?

1046


to find the closest pair

965






Hai what is the different types of versions and their differences

720


why return type of main is not necessary in linux

888


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

1724


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

1691


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

937


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

2772


how to introdu5ce my self in serco

742


how do you programme Carrier Sense Multiple Access

750


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

692


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1063