C Interview Questions
Questions Answers Views Company eMail

What is the difference between declaring a variable by constant keyword and #define ing that variable?

1 1496

What is the use of keyword VOLATILE in C?

1 1520

What is Function Pointer? Explain with example?

3 3181




how to print this pyramid * * * * * * * * * * * * *

2 2294

Calculate 1*2*3*____*n using recursive function??

710

how to write a prog in c to convert decimal number into binary by using recursen function,

1 1802

print out of string in this format; 1. "rajesh" 2. \n 3. %d

mpower,

5 2365

write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC

HCL,

2 7830




Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A

1 5904

int x=sizeof(!5.856); What will value of variable x?

2 3968

how can we Declare a variable in c without defining it.

TCS,

1 3288

how to execute a program using if else condition and the output should enter number and the number is odd only...

821

Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

771

main() { int a=4,b=2; a=b<>2; printf("%d", a); }

CTS,

4 3533

what different between c and c++

1 908


Post New C Questions






Un-Answered Questions { C }

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?

666


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

1115


find out largest elemant of diagonalmatrix

786


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

1933


can any one tel me wt is the question pattern for NIC exam

792






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.

2380


write a program in c language to print your bio-data on the screen by using functions.

5270


using for loop sum 2 number of any 4 digit number in c language

811


Why we not create function inside function.

875


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

764


How to implement a packet in C

1527


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

3493


Write a C program to count the number of email on text

692


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

979


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

3488