How can a program be made to print the line number where an error occurs?
No Answer is Posted For this Question
Be the First to Post Answer
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What are loops c?
will the program compile? int i; scanf(ā%dā,i); printf(ā%dā,i);
what is calloc and malloc?
#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }
What is the difference between int and float?
What is variable in c with example?
What is pre-emptive data structure and explain it with example?
Toggle nth bit in a given integer - num
How can I call a function, given its name as a string?
can we write a c program with out using main
List some of the dynamic data structures in C?