C Interview Questions
Questions Answers Views Company eMail

What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings

6 5112

#include void main() { String s1[]={"swathi"}; string s2[]={"maddimsetti"}; s1[]=s[]; printf("%s",s1[]); }

IBM,

3 4561

how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *

3 3692

main() { int i; for(i=0;i<5;i++) printf("%d",1l< 1 2831


how to find greatet of 10 numbers without using array?

4 3701

what is the use of ~ in c lang?????

3 3667

int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain me output????

1 2555

1) int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain the explain the output

2 3394

#include main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300

Tieto,

4 10979

A MobileNumber is a VIP number if it satisfy the following conditions. The operator should be Vodafone. Atleast one 0 (Zero) should be exist in mobile number. The number should not end with 8. The single digit sum of all the digits in the number should be equal to 9. For example if the number is 9876543210, the sum is 9+8+7+...+1+0 = 45. Sum of 4+5 = 9. Write a method: private boolean isVIPMobileNumber(String mobileNum, String operator) mobileNum phone number operator mobile operator as bsnl, Vodafone

1 3734

main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

2 7130

int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) main() { if(-1<=SIZE) printf("1"); else printf("2"); }

Vector,

2 26207

How to add two numbers without using semicolon n c????

3 5089

#‎include‬ void main() { int i; for(i=5;0;i++) { printf("%d",i); } }

Facebook,

2 3455

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.

TCS,

1483


Post New C Questions

Un-Answered Questions { C }

How can I avoid the abort, retry, fail messages?

639


Is register a keyword in c?

621


What does *p++ do?

572


4. main() { int c=- -2; printf("c=%d",c); }

1354


What is the difference between int main and void main?

562






What are the types of data files?

709


What are the 5 types of organizational structures?

539


What are different types of variables in c?

559


Can we assign integer value to char in c?

605


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.

1620


what is the difference between class and unio?

1847


Write a program to print “hello world” without using semicolon?

661


In C programming, what command or code can be used to determine if a number of odd or even?

607


Write a Program to accept different goods with the number, price and date of purchase and display them

5408


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

1746