C Interview Questions
Questions Answers Views Company eMail

What is main void in c?

1 762

Can we declare variables anywhere in c?

609

What is extern variable in c with example?

581

Why we use stdio h in c?

630

Why void is used in c?

599

What is the value of uninitialized variable in c?

613

What is the use of typedef in c?

626

What is volatile variable in c?

694

What is variable and explain rules to declare variable in c?

599

Why we use break in c?

581

Is return a keyword in c?

634

What is scope and lifetime of a variable in c?

599

What are the types of variables in c?

614

What are external variables in c?

599

Why main is not a keyword in c?

680


Post New C Questions

Un-Answered Questions { C }

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]

1998


Explain how can I prevent another program from modifying part of a file that I am modifying?

679


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1163


What oops means?

617


How is a pointer variable declared?

633






This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

774


Explain the use of #pragma exit?

742


Can two or more operators such as and be combined in a single line of program code?

850


What is the difference between memcpy and memmove?

638


What are structural members?

608


What do you mean by command line argument?

672


Does c have enums?

627


Why is c called a structured programming language?

729


Why functions are used in c?

635


What is an array? What the different types of arrays in c?

688