Шукаєте відповіді та рішення тестів для Coding Café ? Перегляньте нашу велику колекцію перевірених відповідей для Coding Café в dle.plaksha.edu.in.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Given the following declarations:
int num [10] = {23, 3, 5, 7, 4, -1, 6, 12, 10, -23}; int i = 2;Write an expression that evaluates to the same value as *(num + i).
What does the strcmp() function return if the two strings it receives as arguments are the same?
What happens if you modify the elements of an array inside a function that received it as a parameter?
In the below statement, x and y are uninitialized pointers to int. That is, they are pointing to some random address that may or may not be valid address.
int * x, y;What is the ASCII value of the NUL character (\0) used to terminate a string?
Fix the bugs in the following program by rewriting only those statement(s) that need to be modified:
#include <stdio.h>int main() { int *ptr, i = 10; ptr = &i; i += 20; printf("Value of i is %d and is stored at %d.\n", ptr, *ptr); return 0;}
What is the significance of the *ptr notation on the left-hand side (LHS) of an assignment statement?
Given the following code:
1 int arr[] = {5, 10, 15, 20, 25, 30};2 int *ptr1 = arr;3 int *ptr2 = ptr1 + 5;
If the base address of arr is 4001, what will be the value of
Which operator is used to access the value stored at the address held by a pointer?