Skip to content

Instantly share code, notes, and snippets.

@jacob-acusensus
jacob-acusensus / TestFunction.cpp
Last active September 10, 2025 00:14
Acusensus Graduate Application Question
std::string TestFunction()
{
std::string result;
char c1 = 'a' + 125 % 50 - 1;
char c2 = 'a' + 0b0101 - 1; // 0b == binary literal
char c3 = 't' - 1;
result.push_back(c1);
result.push_back(c2);
result.push_back(c3);
result.insert(0, 1, toupper(c2));