What is the output of printf("%d", printf("Hello"));?
To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.
#include<stdio.h> int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }
Dont ansi function prototypes render lint obsolete?
How can I get back to the interactive keyboard if stdin is redirected?
Why clrscr is used after variable declaration?
What is an arrays?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
what is output of the following statetment?Printf(“%x”, -1<<4); ?
How do you prevent buffer overflows in C?
write a program to check whether a number is Peterson or not.
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Can we declare variable anywhere in c?