how logic is used



how logic is used..

Answer / Muhammad Sirajuddin

Logic is used in programming to create a set of instructions that a computer can follow. It allows programmers to make decisions based on conditions and perform different actions depending on the outcome. Logical operators such as AND, OR, NOT, and XOR are fundamental to writing logical programs.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

can we access one file to one directory?

1 Answers  


HOW TO HANDLE EXCEPTIONS IN C

8 Answers  


Differentiate abs() function from fabs() function.

1 Answers  


What does nil mean in c?

1 Answers  


In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?

4 Answers  


biggest of two no's with out using if condition statement

5 Answers  


wat is the meaning of c?

9 Answers   CTS, IBM, Wipro,


What are header files and explain what are its uses in c programming?

1 Answers  


a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none

0 Answers  


Explain why can’t constant values be used to define an array’s initial size?

1 Answers  


while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?

4 Answers   Aptech,


Write a C program to check a number even or odd, without using any relational, arithmetic operator and any loops.

1 Answers  


Categories