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 1581

What is the use of keyword VOLATILE in C?

1 1604

What is Function Pointer? Explain with example?

3 3297




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

2 2384

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

761

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

1 1878

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

mpower,

5 2464

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 7955




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 5991

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

2 4067

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

TCS,

1 3369

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

861

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.

823

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

CTS,

4 3905

what different between c and c++

1 980


Post New C Questions






Un-Answered Questions { C }

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

997


.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; }

158


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

205


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

834


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.

745






#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

2459


while initialization of array why we use a[][2] why not a[2][]...?

1122


Wt are the Buses in C Language

2002


What is your favorite subject?

122


what are the facialities provided by you after the selection of the student.

946


what is the structure pointer?

924


writ a program to compare using strcmp VIVA and viva with its output.

719


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

1500


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.

823


what will be the output for the following main() { printf("hi" "hello"); }

5255