C Interview Questions
Questions Answers Views Company eMail

write a program in c to find out the sum of digits of a number.but here is a condition that compiler sums the value from left to right....not right to left..

1 1500

Write a program to maintain student’s record. Record should not be available to any unauthorized user. There are three (3) categories of users. Each user has its own type. It depends upon user’s type that which kind of operations user can perform. Their types and options are mentioned below: 1. Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record) 2. Super Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record, Delete Single Record) 3. Guest (Search Record [by Reg. No or Name], View All Records) When first time program runs, it asks to create accounts. Each user type has only 1 account (which means that there can be maximum 3 accounts). In account creation, following options are required: Login Name: <6-10 alphabets long, should be unique> Password: <6-10 alphabets long, should not display characters when user type> Confirm Password: Account Type: Login Name, Password and Account Type should be stored in a separate file in encrypted form. (Encryption means that actual information should be changed and Decryption means that Encrypted information is changed back to the actual information) If any of the above mentioned requirement(s) does not meet then point out mistake and ask user to specify information again. When Program is launched with already created accounts, it will ask for user name and password to authenticate. On successful authentication, give options according to the user’s type.

732

main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); }

TCS, Vector,

8 15803




c language interview questions & answer

782

What is the difference between realloc() and free()

1 1644

int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?

CMC,

5 4015

input any 4 digit number and find the difference of all the digits?

Google,

3 1934

Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

MNC,

2280




What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

Google,

1044

what is the purpose of the following code, and is there any problem with the code? void fn(long* p1, long* p2) { register int x = *p1; register int y = *p2; x ^= y; y ^= x; x ^= y; *p1 = x; *p2 = y; }

Google,

1 2410

what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }

Google,

2 1721

What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }

Google,

1 2000

what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }

Google,

1 1920

what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;

Google,

2 2119

Identify the operators that is not used with pointer a. && b. # c. * d. >>

2 3183


Post New C Questions






Un-Answered Questions { C }

plz let me know how to become a telecom protocol tester. thank you.

1059


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1081


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

845


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

536


what is the significance of static storage class specifier?

940






write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

766


Why is event driven programming or procedural programming, better within specific scenario?

1279


simple program of graphics and their output display

816


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

945


what is ur strangth & weekness

1123


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

986


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

1922


How will you find a duplicate number in a array without negating the nos ?

982


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)

911


i want to know the procedure of qualcomm for getting a job through offcampus

1285